From: Ruben Kerkhof Date: Tue, 27 Jan 2015 21:20:01 +0000 (+0000) Subject: Link some slightly more advanced code X-Git-Tag: rec-3.7.0-rc2~19^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3eb3186e0f53ad880c3937c53b0a3180ee9eba94;p=thirdparty%2Fpdns.git Link some slightly more advanced code --- diff --git a/m4/pdns_pie.m4 b/m4/pdns_pie.m4 index 8fe9c4637d..19670a4a14 100644 --- a/m4/pdns_pie.m4 +++ b/m4/pdns_pie.m4 @@ -37,9 +37,14 @@ AC_DEFUN([AC_CC_PIE],[ gl_COMPILER_OPTION_IF([[-Wl,-pie]], [ PIE_CFLAGS="-fPIE -DPIE" PIE_LDFLAGS="-Wl,-pie" - ]) - ] - )] + ], [], + [AC_LANG_PROGRAM([[#include ]], [[static __thread unsigned int t_id = 1;]])] + ) + ], + [AC_LANG_PROGRAM([[#include ]], [[static __thread unsigned int t_id = 1;]])] + )], + [], + [AC_LANG_PROGRAM([[#include ]], [[static __thread unsigned int t_id = 1;]])] ) esac CXXFLAGS=$OLD_CXXFLAGS