From: Ruben Kerkhof Date: Thu, 25 Dec 2014 22:42:01 +0000 (+0100) Subject: Define _GNU_SOURCE in config.h X-Git-Tag: rec-3.7.0-rc1~77^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F2000%2Fhead;p=thirdparty%2Fpdns.git Define _GNU_SOURCE in config.h Instead of passing it on the command line --- diff --git a/configure.ac b/configure.ac index a67f5c5d93..c514f5e7e4 100644 --- a/configure.ac +++ b/configure.ac @@ -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"