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>
Этот коммит содержится в:
родитель
efbc6ff6a5
Коммит
9dad6f4c2c
@ -52,9 +52,9 @@ CFLAGS="$CFLAGS $THREAD_CFLAGS"
|
||||
CPPFLAGS_save="$CPPFLAGS"
|
||||
CPPFLAGS="$CPPFLAGS $THREAD_CPPFLAGS"
|
||||
LDFLAGS_save="$LDFLAGS"
|
||||
LDFLAGS="$LDFLAGS $THREAD_LDFLAGS"
|
||||
LDFLAGS="$THREAD_LDFLAGS"
|
||||
LIBS_save="$LIBS"
|
||||
LIBS="$LIBS $THREAD_LIBS"
|
||||
LIBS="$THREAD_LIBS"
|
||||
AC_RUN_IFELSE([AC_LANG_SOURCE([#include <pthread.h>
|
||||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user