]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Use -pthread rather than -lpthread. 1103/head
authorAdam Borowski <kilobyte@angband.pl>
Sun, 8 Apr 2018 23:50:49 +0000 (01:50 +0200)
committerAdam Borowski <kilobyte@angband.pl>
Sun, 8 Apr 2018 23:50:49 +0000 (01:50 +0200)
It can have other effects, such as pulling in extra libraries.  Without it,
riscv build fails with undefined reference to `__atomic_compare_exchange_1'.

contrib/pzstd/Makefile

index 40531e2165395a2fcb5d2c3a134b1635964f5c38..e15795f72c1206ae51b54cbc1df4a914c0e3bbd2 100644 (file)
@@ -50,7 +50,7 @@ GTEST_LIB  = -L googletest/build/googlemock/gtest
 LIBS       =
 
 # Compilation commands
-LD_COMMAND  = $(CXX) $^          $(ALL_LDFLAGS) $(LIBS) -lpthread -o $@
+LD_COMMAND  = $(CXX) $^          $(ALL_LDFLAGS) $(LIBS) -pthread -o $@
 CC_COMMAND  = $(CC)  $(DEPFLAGS) $(ALL_CFLAGS)   -c $<  -o $@
 CXX_COMMAND = $(CXX) $(DEPFLAGS) $(ALL_CXXFLAGS) -c $<  -o $@