summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitry Andric <dimitry@andric.com>2016-08-08 18:34:05 +0000
committerDimitry Andric <dimitry@andric.com>2016-08-08 18:34:05 +0000
commit70ba8c506c0b6d11dfa14fc9e4c4a0f69e12c430 (patch)
tree288012337b60a0e9af3e14f2625ccccdcb65275c
parent290a13e7c755e7e8d6be450efc63b8fcea417b86 (diff)
downloadbcm5719-llvm-70ba8c506c0b6d11dfa14fc9e4c4a0f69e12c430.tar.gz
bcm5719-llvm-70ba8c506c0b6d11dfa14fc9e4c4a0f69e12c430.zip
Fix linking of omp_foreign_thread_team_reuse test on FreeBSD
Summary: 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. Reviewers: jlpeyton, hfinkel, Hahnfeld Subscribers: Hahnfeld, emaste, openmp-commits Differential Revision: https://reviews.llvm.org/D23084 llvm-svn: 278036
-rw-r--r--openmp/runtime/test/misc_bugs/omp_foreign_thread_team_reuse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openmp/runtime/test/misc_bugs/omp_foreign_thread_team_reuse.c b/openmp/runtime/test/misc_bugs/omp_foreign_thread_team_reuse.c
index a8400e4541b..4d70d47aa62 100644
--- a/openmp/runtime/test/misc_bugs/omp_foreign_thread_team_reuse.c
+++ b/openmp/runtime/test/misc_bugs/omp_foreign_thread_team_reuse.c
@@ -1,4 +1,4 @@
-// RUN: %libomp-compile-and-run
+// RUN: %libomp-compile -lpthread && %libomp-run
#include <stdio.h>
#include "omp_testsuite.h"
OpenPOWER on IntegriCloud