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'.
This commit is contained in:
parent
4195b36dd7
commit
00d52282d0
@ -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 $@
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user