]> granicus.if.org Git - pdns/commitdiff
Link some slightly more advanced code
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Tue, 27 Jan 2015 21:20:01 +0000 (21:20 +0000)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Tue, 27 Jan 2015 21:31:10 +0000 (21:31 +0000)
m4/pdns_pie.m4

index 8fe9c4637d965145d0709a7e5b8e3289e1aae78f..19670a4a14e0910ce211fc34e00ef7c0ee25eb20 100644 (file)
@@ -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 <pthread.h>]], [[static __thread unsigned int t_id = 1;]])]
+            )
+          ],
+          [AC_LANG_PROGRAM([[#include <pthread.h>]], [[static __thread unsigned int t_id = 1;]])]
+        )],
+        [],
+        [AC_LANG_PROGRAM([[#include <pthread.h>]], [[static __thread unsigned int t_id = 1;]])]
       )
     esac
     CXXFLAGS=$OLD_CXXFLAGS