summaryrefslogtreecommitdiff
path: root/Rules.mak
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-10-29 01:36:30 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-10-29 01:36:30 +0000
commit01c9aec794f83a774ce2268236273ed4e6b9ad5d (patch)
tree3da38d2425d620e4613e92dd8468dbaa4d18345f /Rules.mak
parent47d8fab86e0146c32cd6b5392bf0fb11a926a5b6 (diff)
Add -o /dev/null to AS_NEEDED check linker script check, else a.out polution all over the place
Diffstat (limited to 'Rules.mak')
-rw-r--r--Rules.mak2
1 files changed, 1 insertions, 1 deletions
diff --git a/Rules.mak b/Rules.mak
index c06553f6f..f960571f8 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -260,7 +260,7 @@ 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 > /dev/null 2>&1; then echo "AS_NEEDED ( $(UCLIBC_LDSO) )"; else echo "$(UCLIBC_LDSO)"; fi; rm -f $LD_TMP ) )
+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
endif