Potential fix for CI issue?
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Deukhoofd 2021-03-26 18:08:45 +01:00
parent 2546751f64
commit 4eb2b4f53d
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 3 additions and 3 deletions

View File

@ -136,14 +136,14 @@ if (WINDOWS)
endif (WINDOWS)
if (NOT WINDOWS)
set(_LINKS ${_LINKS} -lbfd -ldl)
set(_LINKS -lbfd -ldl ${_LINKS})
endif ()
if (STATICC)
set (CMAKE_SHARED_LINKER_FLAGS "-Wl,--as-needed")
message(STATUS "Linking C library statically")
set(_LINKS ${_LINKS} -lpthread -static-libgcc -static-libstdc++ -Wl,-Bstatic -lm -lstdc++)
SET(_TESTLINKS ${_TESTLINKS} -lpthread -static-libgcc -static-libstdc++ -Wl,-Bstatic -lstdc++)
set(_LINKS ${_LINKS} -static-libgcc -static-libstdc++ -Wl,-Bstatic -lm -lstdc++ -lpthread -Wl,-Bdynamic)
SET(_TESTLINKS ${_TESTLINKS} -static-libgcc -static-libstdc++ -Wl,-Bstatic -lstdc++ -lpthread -Wl,-Bdynamic)
else()
SET(_LINKS ${_LINKS} Threads::Threads)
endif()