static link with pthread because GNU a shit

pull/67/head
Jeff Becker 6 years ago
parent 5357b4b69f
commit a35066ce42
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -58,7 +58,7 @@ if(STATIC_LINK)
if(USING_CLANG)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static")
else()
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static-libstdc++ -static-libgcc -static" )
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static-libstdc++ -static-libgcc -static -Wl,--whole-archive -lpthread -Wl,--no-whole-archive" )
endif()
endif()

Loading…
Cancel
Save