mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-15 12:13:24 +00:00
linker flags have no effect in compilation
and will cause -Werror=unused-command-line-option on apple cc
This commit is contained in:
parent
6d608d292f
commit
59c6184233
@ -130,7 +130,6 @@ if(STATIC_LINK)
|
||||
if(USING_CLANG)
|
||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static")
|
||||
else()
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -static-libgcc -static -Wl,--whole-archive -Wl,--no-whole-archive")
|
||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static-libstdc++ -static-libgcc -static -Wl,--whole-archive -lpthread -Wl,--no-whole-archive" )
|
||||
endif(USING_CLANG)
|
||||
endif(STATIC_LINK)
|
||||
|
Loading…
Reference in New Issue
Block a user