mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-08-25 08:37:13 +09:00
Use AC_COMPILE_IFELSE → AC_LINK_IFELSE in ax_tls.m4
On AIX, _Thread_local may compile but not link
This commit is contained in:
+1
-1
@@ -52,7 +52,7 @@ AC_DEFUN([AX_TLS], [
|
||||
[for ax_tls_keyword in thread_local _Thread_local __thread '__declspec(thread)' none; do
|
||||
AS_CASE([$ax_tls_keyword],
|
||||
[none], [ac_cv_tls=none ; break],
|
||||
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
|
||||
[AC_LINK_IFELSE([AC_LANG_PROGRAM(
|
||||
[#include <stdlib.h>],
|
||||
[static $ax_tls_keyword int bar;]
|
||||
)],
|
||||
|
||||
Reference in New Issue
Block a user