From 00d52282d0a55a5ec4a1af9601657cc548e1749d Mon Sep 17 00:00:00 2001 From: Adam Borowski Date: Mon, 9 Apr 2018 01:50:49 +0200 Subject: [PATCH] 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'. --- contrib/pzstd/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/pzstd/Makefile b/contrib/pzstd/Makefile index 40531e21..e15795f7 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 $@