From 31248ebd7391707f765751c235fa1877ae526bd6 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 19 Jun 2006 00:45:38 +0000 Subject: if $(LD) doesnt support --help, dont warn about it (stupid Darwin users) --- Rules.mak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3