From: Ruben Kerkhof Date: Thu, 12 Feb 2015 16:58:42 +0000 (+0100) Subject: Silence warnings that always occur on FreeBSD X-Git-Tag: dnsdist-1.0.0-alpha1~306^2~12^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5b721f44b0b4504ba9b5e10314193c172d887136;p=pdns Silence warnings that always occur on FreeBSD --- diff --git a/pdns/configure-recursor b/pdns/configure-recursor index f82a8b8c0..cbef2d3d1 100755 --- a/pdns/configure-recursor +++ b/pdns/configure-recursor @@ -46,8 +46,8 @@ main () EOF # test for PIE - if $CXX $src -c -o a.out -fPIE -DPIE; then - if [ "$STATIC" != "semi" ] && [ "$STATIC" != "full" ] && $CXX -pie -o a2.out a.out; then + if $CXX $src -c -o a.out -fPIE -DPIE 2>/dev/null; then + if [ "$STATIC" != "semi" ] && [ "$STATIC" != "full" ] && $CXX -pie -o a2.out a.out 2>/dev/null; then CF_PIE="-fPIE -DPIE" LD_PIE="-pie" fi