[PATCH] D49538: Add -lpthread to LDFLAGS

Aleksandar Beserminji via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 19 04:22:26 PDT 2018


abeserminji created this revision.
abeserminji added reviewers: petarj, MatzeB.

This test fails when compiling with -static option. Adding this flag resolves the linker error.


Repository:
  rT test-suite

https://reviews.llvm.org/D49538

Files:
  SingleSource/Benchmarks/Misc-C++-EH/Makefile


Index: SingleSource/Benchmarks/Misc-C++-EH/Makefile
===================================================================
--- SingleSource/Benchmarks/Misc-C++-EH/Makefile
+++ SingleSource/Benchmarks/Misc-C++-EH/Makefile
@@ -1,5 +1,5 @@
 LEVEL = ../../..
-LDFLAGS += -lm -lstdc++
+LDFLAGS += -lm -lstdc++ -lpthread
 LIBS = -lstdc++
 REQUIRES_EH_SUPPORT = 1
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49538.156229.patch
Type: text/x-patch
Size: 356 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180719/501e6213/attachment.bin>


More information about the llvm-commits mailing list