|
From: Bart V. A. <bar...@gm...> - 2008-05-14 08:27:21
|
Something that is annoying when cross-compiling Valgrind is that
detection of TLS support results in an error -- it has to be specified
explicitly via --enable-tls / --disable-tls. Anyone any idea whether
the patch below is safe ?
Bart.
$ svn diff configure.in
Index: configure.in
===================================================================
--- configure.in (revision 8070)
+++ configure.in (working copy)
@@ -1145,7 +1150,7 @@
AC_CACHE_CHECK([for TLS support], vg_cv_tls,
[AC_ARG_ENABLE(tls, [ --enable-tls platform
supports TLS],
[vg_cv_tls=$enableval],
- [AC_RUN_IFELSE([AC_LANG_PROGRAM([[static
__thread int foo;]],
+ [AC_LINK_IFELSE([AC_LANG_PROGRAM([[static
__thread int foo;]],
[[return foo;]])],
[vg_cv_tls=yes],
[vg_cv_tls=no])])])
|