[PATCH] D16241: [test-suite] Add -pthread to Misc-C++-EH LDFLAGS

Chad Rosier via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 15 13:23:17 PST 2016


mcrosier created this revision.
mcrosier added reviewers: MatzeB, cmatthews.
mcrosier added a subscriber: llvm-commits.

The benchmark built under SingleSource/Benchmarks/Misc-C++-EH requires
pthread functions but did not previously have -pthread in LDFLAGS.
This causes an issue when attempting to statically compile the binary.


http://reviews.llvm.org/D16241

Files:
  SingleSource/Benchmarks/Misc-C++-EH/CMakeLists.txt

Index: SingleSource/Benchmarks/Misc-C++-EH/CMakeLists.txt
===================================================================
--- SingleSource/Benchmarks/Misc-C++-EH/CMakeLists.txt
+++ SingleSource/Benchmarks/Misc-C++-EH/CMakeLists.txt
@@ -1,4 +1,4 @@
-list(APPEND LDFLAGS -lm -lstdc++)
+list(APPEND LDFLAGS -lm -lstdc++ -pthread)
 set(LIBS -lstdc++)
 set(REQUIRES_EH_SUPPORT 1)
 llvm_singlesource()


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D16241.45028.patch
Type: text/x-patch
Size: 400 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160115/684d8aad/attachment.bin>


More information about the llvm-commits mailing list