From d6baee3fbf82eadcca7cfab5149d654ca19dc9d7 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Sat, 24 Jan 2015 18:12:41 +0100 Subject: [PATCH] Do not compile with -fPIC if we compile with -fPIE --- pdns/configure-recursor | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.47.2