summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2019-01-09 11:38:46 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2019-01-09 11:38:46 +0000
commitda20c322ca11c421a48472fb6d7ca6df5d3be8f8 (patch)
tree3df7f2e217628b71c51625b76b4d8e456195c3b5 /acinclude.m4
parentef83c6b878653daeee4cc7a4832c9f1cb9d0b3b9 (diff)
downloadmpfr-da20c322ca11c421a48472fb6d7ca6df5d3be8f8.tar.gz
[acinclude.m4] In MPFR_CHECK_SHARED_CACHE (used when the shared cache
was requested), also set CC="$PTHREAD_CC" as documented by ax_pthread (autoconf-archive). This is not guaranteed to work, but according to the ax_pthread.m4 source, in the cases where "$PTHREAD_CC" != "$CC", not setting it will probably not work either. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13391 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m41
1 files changed, 1 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 35f9eda1f..767b26bf1 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -1642,6 +1642,7 @@ dnl because logging support disables threading support
else
AC_MSG_RESULT(yes)
if test "$ax_pthread_ok" = yes ; then
+ CC="$PTHREAD_CC"
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
LIBS="$LIBS $PTHREAD_LIBS"
fi