[Openmp-commits] [PATCH] D23083: Fix linking of omp_foreign_thread_team_reuse test
Dimitry Andric via Openmp-commits
openmp-commits at lists.llvm.org
Tue Aug 2 13:38:09 PDT 2016
dim created this revision.
dim added reviewers: jlpeyton, hfinkel.
dim added subscribers: openmp-commits, emaste.
On FreeBSD, linking the misc_bugs/omp_foreign_thread_team_reuse.c test
case fails with:
/usr/local/bin/ld: /tmp/omp_foreign_thread_team_reuse-c5e71b.o: undefined reference to symbol 'pthread_create@@FBSD_1.0'
This is because the program is linked without `-lpthread`. Since the
%libomp-compile-and-run macro does not allow that option to be added to
the compile command line, split it up and add the required `-lpthread`
between %libomp-compile and %libomp-run.
https://reviews.llvm.org/D23083
Files:
cmake/config-ix.cmake
Index: cmake/config-ix.cmake
===================================================================
--- cmake/config-ix.cmake
+++ cmake/config-ix.cmake
@@ -457,7 +457,7 @@
endif()
if (COMPILER_RT_HAS_SANITIZER_COMMON AND TSAN_SUPPORTED_ARCH AND
- OS_NAME MATCHES "Darwin|Linux|FreeBSD")
+ OS_NAME MATCHES "Darwin|Linux")
set(COMPILER_RT_HAS_TSAN TRUE)
else()
set(COMPILER_RT_HAS_TSAN FALSE)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23083.66545.patch
Type: text/x-patch
Size: 405 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20160802/f3795bdf/attachment.bin>
More information about the Openmp-commits
mailing list