]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Do not compile with -fPIC if we compile with -fPIE
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 24 Jan 2015 17:12:41 +0000 (18:12 +0100)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 24 Jan 2015 17:12:41 +0000 (18:12 +0100)
pdns/configure-recursor

index c459abc99d4d94c2c6d8979152a8d35916b762a2..1716186449d79271e2ba7249467aeba04381f0f0 100755 (executable)
@@ -42,9 +42,9 @@ main ()
 EOF
 
   # test for PIE
-  if $CXX $src -c -o a.out -fPIE -fPIC -DPIE; then
+  if $CXX $src -c -o a.out -fPIE -DPIE; then
     if [ "$STATIC" != "semi" ] && [ "$STATIC" != "full" ] && $CXX -pie -o a2.out a.out; then
-      CF_PIE="-fPIE -fPIC -DPIE"
+      CF_PIE="-fPIE -DPIE"
       LD_PIE="-pie"
     fi
   fi