Only statically link libm and pthread on Windows
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2022-02-12 12:41:51 +01:00
parent 923483e9b9
commit e9395f71b8
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 5 additions and 0 deletions

View File

@ -88,6 +88,11 @@ if (STATICC)
set (CMAKE_SHARED_LINKER_FLAGS "-Wl,--as-needed")
set(LINKS -static-libgcc -static-libstdc++ -Wl,-Bstatic -lm -lstdc++ -lpthread -Wl,-Bdynamic ${LINKS})
endif(STATICC)
if (WINDOWS)
set(LINKS ${LINKS} -Wl,-Bstatic -lm -lstdc++ -lpthread -Wl,-Bdynamic)
endif()
target_link_libraries(Arbutils ${LINKS})
if (ARBUTILS_TESTS)