svn commit: trunk/uClibc

vapier at uclibc.org vapier at uclibc.org
Sat Sep 15 07:42:01 UTC 2007


Author: vapier
Date: 2007-09-15 00:42:01 -0700 (Sat, 15 Sep 2007)
New Revision: 19839

Log:
simplify binutils as-needed support and enable it all the time regardless of ssp

Modified:
   trunk/uClibc/Rules.mak


Changeset:
Modified: trunk/uClibc/Rules.mak
===================================================================
--- trunk/uClibc/Rules.mak	2007-09-15 07:40:58 UTC (rev 19838)
+++ trunk/uClibc/Rules.mak	2007-09-15 07:42:01 UTC (rev 19839)
@@ -335,12 +335,8 @@
 
 # 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 ) )
+export ASNEEDED:=$(shell $(LD) --help 2>/dev/null | grep -q -- --as-needed && echo "AS_NEEDED ( $(UCLIBC_LDSO) )" || echo "$(UCLIBC_LDSO)")
 endif
-endif
 
 # Add a bunch of extra pedantic annoyingly strict checks
 XWARNINGS=$(subst ",, $(strip $(WARNINGS))) -Wstrict-prototypes -fno-strict-aliasing




More information about the uClibc-cvs mailing list