From: Ruben Kerkhof Date: Sat, 24 Jan 2015 17:11:57 +0000 (+0100) Subject: Only compile PIE objects if we can link them X-Git-Tag: rec-3.7.0-rc2~42^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d5d09aa7921357d04142c9f01eeba0bc7e864a36;p=thirdparty%2Fpdns.git Only compile PIE objects if we can link them --- diff --git a/pdns/configure-recursor b/pdns/configure-recursor index 64519ddca6..c459abc99d 100755 --- a/pdns/configure-recursor +++ b/pdns/configure-recursor @@ -43,8 +43,8 @@ EOF # test for PIE if $CXX $src -c -o a.out -fPIE -fPIC -DPIE; then - CF_PIE="-fPIE -fPIC -DPIE" if [ "$STATIC" != "semi" ] && [ "$STATIC" != "full" ] && $CXX -pie -o a2.out a.out; then + CF_PIE="-fPIE -fPIC -DPIE" LD_PIE="-pie" fi fi