diff options
-rw-r--r-- | Rules.mak | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |