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)
|
endif (WINDOWS)
|
||||||
|
|
||||||
if (NOT WINDOWS)
|
if (NOT WINDOWS)
|
||||||
set(_LINKS ${_LINKS} -lbfd -ldl)
|
set(_LINKS -lbfd -ldl ${_LINKS})
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
if (STATICC)
|
if (STATICC)
|
||||||
set (CMAKE_SHARED_LINKER_FLAGS "-Wl,--as-needed")
|
set (CMAKE_SHARED_LINKER_FLAGS "-Wl,--as-needed")
|
||||||
message(STATUS "Linking C library statically")
|
message(STATUS "Linking C library statically")
|
||||||
set(_LINKS ${_LINKS} -lpthread -static-libgcc -static-libstdc++ -Wl,-Bstatic -lm -lstdc++)
|
set(_LINKS ${_LINKS} -static-libgcc -static-libstdc++ -Wl,-Bstatic -lm -lstdc++ -lpthread -Wl,-Bdynamic)
|
||||||
SET(_TESTLINKS ${_TESTLINKS} -lpthread -static-libgcc -static-libstdc++ -Wl,-Bstatic -lstdc++)
|
SET(_TESTLINKS ${_TESTLINKS} -static-libgcc -static-libstdc++ -Wl,-Bstatic -lstdc++ -lpthread -Wl,-Bdynamic)
|
||||||
else()
|
else()
|
||||||
SET(_LINKS ${_LINKS} Threads::Threads)
|
SET(_LINKS ${_LINKS} Threads::Threads)
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in New Issue