]> granicus.if.org Git - pdns/commitdiff
Silence warnings that always occur on FreeBSD
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Thu, 12 Feb 2015 16:58:42 +0000 (17:58 +0100)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Thu, 12 Feb 2015 16:58:42 +0000 (17:58 +0100)
pdns/configure-recursor

index f82a8b8c0e712c851d92cea2060d2a7f1efeb726..cbef2d3d1715ef84fd42abef1b9f18cb6be01103 100755 (executable)
@@ -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