summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-06-19 00:45:38 +0000
committerMike Frysinger <vapier@gentoo.org>2006-06-19 00:45:38 +0000
commit31248ebd7391707f765751c235fa1877ae526bd6 (patch)
treeed554f6d6640e2c70ad89d3dff9643d623e136e9
parent621fab9a1743230d379cc9d65c52f0482e77ea7a (diff)
if $(LD) doesnt support --help, dont warn about it (stupid Darwin users)
-rw-r--r--Rules.mak2
1 files changed, 1 insertions, 1 deletions
diff --git a/Rules.mak b/Rules.mak
index 7478c2a01..8a3636cc7 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -296,7 +296,7 @@ ifndef LDPIEFLAG
ifneq ($(UCLIBC_BUILD_PIE),y)
export LDPIEFLAG:=
else
-export LDPIEFLAG:=$(shell $(LD) --help | grep -q pie && echo "-Wl,-pie")
+export LDPIEFLAG:=$(shell $(LD) --help 2>/dev/null | grep -q -- -pie && echo "-Wl,-pie")
endif
endif