Skip to content

Commit

Permalink
Merge pull request #2362 from duguhaotian/work
Browse files Browse the repository at this point in the history
support tls in cross-compile
  • Loading branch information
brauner committed Jun 4, 2018
2 parents 224d1fd + 8d6aae9 commit fe96566
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/tls.m4
Expand Up @@ -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])
Expand Down

0 comments on commit fe96566

Please sign in to comment.