Browse Source

if $(LD) doesnt support --help, dont warn about it (stupid Darwin users)

Mike Frysinger 19 years ago
parent
commit
31248ebd73
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Rules.mak

+ 1 - 1
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