From: Ruben Kerkhof Date: Sat, 24 Jan 2015 17:12:41 +0000 (+0100) Subject: Do not compile with -fPIC if we compile with -fPIE X-Git-Tag: rec-3.7.0-rc2~42^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d6baee3fbf82eadcca7cfab5149d654ca19dc9d7;p=thirdparty%2Fpdns.git Do not compile with -fPIC if we compile with -fPIE --- diff --git a/pdns/configure-recursor b/pdns/configure-recursor index c459abc99d..1716186449 100755 --- a/pdns/configure-recursor +++ b/pdns/configure-recursor @@ -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