Skip to content

Commit 9dad6f4

Browse files
committed
threads: fix a problem hit when using ex-hwloc
problem was that adding --with-hwloc option pointing at a non-default location for an hwloc install can add hwloc lib info to the global LDFLAGS, which results in some of the runtime checkes in the pthread configury to fail. This commit resolves this problem by using pthreads-only LDFLAGS for building the runtime checks in the pthreads configury. related to #7644 Signed-off-by: Howard Pritchard <howardp@lanl.gov>
1 parent efbc6ff commit 9dad6f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

opal/mca/threads/pthreads/configure.m4

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ CFLAGS="$CFLAGS $THREAD_CFLAGS"
5252
CPPFLAGS_save="$CPPFLAGS"
5353
CPPFLAGS="$CPPFLAGS $THREAD_CPPFLAGS"
5454
LDFLAGS_save="$LDFLAGS"
55-
LDFLAGS="$LDFLAGS $THREAD_LDFLAGS"
55+
LDFLAGS="$THREAD_LDFLAGS"
5656
LIBS_save="$LIBS"
57-
LIBS="$LIBS $THREAD_LIBS"
57+
LIBS="$THREAD_LIBS"
5858
AC_RUN_IFELSE([AC_LANG_SOURCE([#include <pthread.h>
5959
#include <sys/types.h>
6060
#include <unistd.h>

0 commit comments

Comments
 (0)