From: Adam Borowski Date: Sun, 8 Apr 2018 23:50:49 +0000 (+0200) Subject: Use -pthread rather than -lpthread. X-Git-Tag: v1.3.5~3^2~80^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1103%2Fhead;p=thirdparty%2Fzstd.git Use -pthread rather than -lpthread. It can have other effects, such as pulling in extra libraries. Without it, riscv build fails with undefined reference to `__atomic_compare_exchange_1'. --- diff --git a/contrib/pzstd/Makefile b/contrib/pzstd/Makefile index 40531e216..e15795f72 100644 --- a/contrib/pzstd/Makefile +++ b/contrib/pzstd/Makefile @@ -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 $@