mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-27 06:21:08 +00:00
Merge pull request #2362 from duguhaotian/work
support tls in cross-compile
This commit is contained in:
commit
fe96566a4b
@ -5,7 +5,7 @@
|
||||
AC_DEFUN([LXC_CHECK_TLS],
|
||||
[
|
||||
AC_MSG_CHECKING(for TLS)
|
||||
AC_RUN_IFELSE([AC_LANG_SOURCE([[ static __thread int val; int main() { return 0; } ]])],[have_tls=yes],[have_tls=no],[have_tls=no ])
|
||||
AC_COMPILE_IFELSE([AC_LANG_SOURCE([[ static __thread int val; int main() { return 0; } ]])],[have_tls=yes],[have_tls=no],[have_tls=no ])
|
||||
AC_MSG_RESULT($have_tls)
|
||||
if test "$have_tls" = "yes"; then
|
||||
AC_DEFINE([HAVE_TLS],[1],[Define if the compiler supports __thread])
|
||||
|
Loading…
Reference in New Issue
Block a user