summaryrefslogtreecommitdiff
path: root/ldso/ldso/Makefile.in
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-11-27 00:15:07 -0500
committerMike Frysinger <vapier@gentoo.org>2012-01-14 19:32:29 -0500
commita899b909abe14e8e35a81997c828201d1beaff78 (patch)
tree290f90323a9da4f107925f19bb2806f82d6adb90 /ldso/ldso/Makefile.in
parent93a11d8bb29423727cdd71c12b6ae8accc21997b (diff)
buildsys: cache build flags in vars
Running `make clean` atm takes like 20 seconds because every subdir re-evaluates all the toolchain flags. Add some helpers to automate the process of setting up variables to cache the result of tests, as well as the checking of an already set flag. Now `make clean` takes like 2 seconds on my system. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'ldso/ldso/Makefile.in')
-rw-r--r--ldso/ldso/Makefile.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/ldso/ldso/Makefile.in b/ldso/ldso/Makefile.in
index ad8edbb65..eb1570a53 100644
--- a/ldso/ldso/Makefile.in
+++ b/ldso/ldso/Makefile.in
@@ -36,7 +36,9 @@ LDFLAGS-$(UCLIBC_LDSO_NAME).so := $(LDFLAGS)
else
LDFLAGS-$(UCLIBC_LDSO_NAME).so := $(LDFLAGS_NOSTRIP) -Wl,-z,defs
endif
-LDFLAGS-$(UCLIBC_LDSO_NAME).so += -Wl,-e,_start -Wl,-z,now -Wl,-Bsymbolic -Wl,--export-dynamic $(LDFLAG_SORT_COMMON) -Wl,--discard-locals $(LDFLAG_DISCARD_ALL) -Wl,--no-undefined
+LDFLAGS-$(UCLIBC_LDSO_NAME).so += -Wl,-e,_start -Wl,-z,now -Wl,-Bsymbolic \
+ -Wl,--export-dynamic $(CFLAG_-Wl--sort-common) -Wl,--discard-locals \
+ $(CFLAG_-Wl--discard-all) -Wl,--no-undefined
ldso_FULL_NAME := $(UCLIBC_LDSO_NAME)-$(VERSION).so