From 3eb3186e0f53ad880c3937c53b0a3180ee9eba94 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Tue, 27 Jan 2015 21:20:01 +0000 Subject: [PATCH] Link some slightly more advanced code --- m4/pdns_pie.m4 | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/m4/pdns_pie.m4 b/m4/pdns_pie.m4 index 8fe9c4637..19670a4a1 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 -- 2.40.0