From e57084e109056c4f8601e5ae866437f9ffadea3e Mon Sep 17 00:00:00 2001 From: "Peter W. Draper" <p.w.draper@durham.ac.uk> Date: Tue, 14 Apr 2015 17:17:30 +0100 Subject: [PATCH] Keep the environment LDFLAGS when checking for pthreads The compiler modules at Durham rely on this working. Former-commit-id: 5f2016f136c4a3b023451b153c02870d5981c386 --- configure.ac | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 203a061467..3ea6fb7bde 100644 --- a/configure.ac +++ b/configure.ac @@ -1,4 +1,3 @@ - # This file is part of SWIFT. # Copyright (C) 2012 pedro.gonnet@durham.ac.uk. # @@ -165,7 +164,7 @@ AC_CHECK_LIB(m,sqrt,,AC_MSG_ERROR(something is wrong with the math library!)) # Check for pthreads. AX_PTHREAD([LIBS="$PTHREAD_LIBS $LIBS" CFLAGS="$CFLAGS $PTHREAD_CFLAGS" - CC="$PTHREAD_CC" LDFLAGS="$PTHREAD_LIBS $LIBS"], + CC="$PTHREAD_CC" LDFLAGS="$LDFLAGS $PTHREAD_LIBS $LIBS"], AC_MSG_ERROR([Could not find a working version of the pthread library. Make sure you have the library and header files installed or use CPPFLAGS and LDFLAGS if the library is installed in a -- GitLab