summaryrefslogtreecommitdiff
path: root/Rules.mak
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2007-09-15 07:42:01 +0000
committerMike Frysinger <vapier@gentoo.org>2007-09-15 07:42:01 +0000
commitd9ec80053e440a08251e88a50bfaa283d9e00795 (patch)
tree888c018c676e621a70aeb8e315fc04d22a70a9ab /Rules.mak
parent86fffacc269de9e2e8bfc126fc78627fb690e91a (diff)
simplify binutils as-needed support and enable it all the time regardless of ssp
Diffstat (limited to 'Rules.mak')
-rw-r--r--Rules.mak6
1 files changed, 1 insertions, 5 deletions
diff --git a/Rules.mak b/Rules.mak
index a2a5d30d1..3c656d4e2 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -335,11 +335,7 @@ endif
# Check for AS_NEEDED support in linker script (binutils>=2.16.1 has it)
ifndef ASNEEDED
-ifneq ($(UCLIBC_HAS_SSP),y)
-export ASNEEDED:=
-else
-export ASNEEDED:=$(shell (LD_TMP=$(mktemp LD_XXXXXX) ; echo "GROUP ( AS_NEEDED ( /usr/lib/libc.so ) )" > $LD_TMP && if $(LD) -T $LD_TMP -o /dev/null > /dev/null 2>&1; then echo "AS_NEEDED ( $(UCLIBC_LDSO) )"; else echo "$(UCLIBC_LDSO)"; fi; rm -f $LD_TMP ) )
-endif
+export ASNEEDED:=$(shell $(LD) --help 2>/dev/null | grep -q -- --as-needed && echo "AS_NEEDED ( $(UCLIBC_LDSO) )" || echo "$(UCLIBC_LDSO)")
endif
# Add a bunch of extra pedantic annoyingly strict checks