linker flags have no effect in compilation

and will cause -Werror=unused-command-line-option
on apple cc
pull/283/head
Rick V 6 years ago
parent 6d608d292f
commit 59c6184233
No known key found for this signature in database
GPG Key ID: C0EDC8723FDC3465

@ -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…
Cancel
Save