]> granicus.if.org Git - pdns/commitdiff
Define _GNU_SOURCE in config.h
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Thu, 25 Dec 2014 22:42:01 +0000 (23:42 +0100)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Thu, 25 Dec 2014 22:42:01 +0000 (23:42 +0100)
Instead of passing it on the command line

configure.ac

index a67f5c5d936f22496e13c5762b97c8877cd43e4f..c514f5e7e4b869cebeeaf48393b6637d9df6e2aa 100644 (file)
@@ -30,6 +30,10 @@ AS_IF([test "x$CXX" = "xno" || test "x$CXX:x$GXX" = "xg++:x"],
 
 AC_LANG([C++])
 
+AC_DEFINE([_GNU_SOURCE], [1],
+  [Define _GNU_SOURCE so that we get all necessary prototypes]
+)
+
 AC_CC_PIE
 AC_CC_STACK_PROTECTOR
 AC_CC_PARAM_SSP_BUFFER_SIZE([4])
@@ -151,7 +155,6 @@ solaris2.8 | solaris2.9 )
   ;;
 linux*)
   THREADFLAGS="-pthread"
-  CXXFLAGS="-D_GNU_SOURCE $CXXFLAGS"
   ;;
 darwin*)
   CXXFLAGS="-D__APPLE_USE_RFC_3542 $CXXFLAGS"