Only statically link libm and pthread on Windows
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
923483e9b9
commit
e9395f71b8
|
@ -88,6 +88,11 @@ if (STATICC)
|
||||||
set (CMAKE_SHARED_LINKER_FLAGS "-Wl,--as-needed")
|
set (CMAKE_SHARED_LINKER_FLAGS "-Wl,--as-needed")
|
||||||
set(LINKS -static-libgcc -static-libstdc++ -Wl,-Bstatic -lm -lstdc++ -lpthread -Wl,-Bdynamic ${LINKS})
|
set(LINKS -static-libgcc -static-libstdc++ -Wl,-Bstatic -lm -lstdc++ -lpthread -Wl,-Bdynamic ${LINKS})
|
||||||
endif(STATICC)
|
endif(STATICC)
|
||||||
|
|
||||||
|
if (WINDOWS)
|
||||||
|
set(LINKS ${LINKS} -Wl,-Bstatic -lm -lstdc++ -lpthread -Wl,-Bdynamic)
|
||||||
|
endif()
|
||||||
|
|
||||||
target_link_libraries(Arbutils ${LINKS})
|
target_link_libraries(Arbutils ${LINKS})
|
||||||
|
|
||||||
if (ARBUTILS_TESTS)
|
if (ARBUTILS_TESTS)
|
||||||
|
|
Loading…
Reference in New Issue