]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Only compile PIE objects if we can link them
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 24 Jan 2015 17:11:57 +0000 (18:11 +0100)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 24 Jan 2015 17:11:57 +0000 (18:11 +0100)
pdns/configure-recursor

index 64519ddca6fd1a228209472f578109ba04c45417..c459abc99d4d94c2c6d8979152a8d35916b762a2 100755 (executable)
@@ -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