blob: 418622e547f459481dc0c29c851fa6589014f0b4 [file] [log] [blame]
Fixing as-needed issue
http://bugs.gentoo.org/show_bug.cgi?id=271509
--- m4/acx_pthread.m4
+++ m4/acx_pthread.m4
@@ -278,7 +278,8 @@
fi
fi
- if test x"$done" = xno; then
+ if test x"$done" = xyes; then
+ done="no"
AC_MSG_CHECKING([whether -pthread is sufficient with -shared])
AC_TRY_LINK([#include <pthread.h>],
[pthread_t th; pthread_join(th, 0);
--- gtest/m4/acx_pthread.m4
+++ gtest/m4/acx_pthread.m4
@@ -278,7 +278,8 @@
fi
fi
- if test x"$done" = xno; then
+ if test x"$done" = xyes; then
+ done="no"
AC_MSG_CHECKING([whether -pthread is sufficient with -shared])
AC_TRY_LINK([#include <pthread.h>],
[pthread_t th; pthread_join(th, 0);