Potential fix for CI issue?
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
2546751f64
commit
4eb2b4f53d
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue