Further adding back pthread to dynamically linking.
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
b2b0ef5bd6
commit
2546751f64
|
@ -142,7 +142,7 @@ endif ()
|
|||
if (STATICC)
|
||||
set (CMAKE_SHARED_LINKER_FLAGS "-Wl,--as-needed")
|
||||
message(STATUS "Linking C library statically")
|
||||
set(_LINKS ${_LINKS} -static-libgcc -static-libstdc++ -Wl,-Bstatic -lm -lstdc++ -lpthread)
|
||||
set(_LINKS ${_LINKS} -lpthread -static-libgcc -static-libstdc++ -Wl,-Bstatic -lm -lstdc++)
|
||||
SET(_TESTLINKS ${_TESTLINKS} -lpthread -static-libgcc -static-libstdc++ -Wl,-Bstatic -lstdc++)
|
||||
else()
|
||||
SET(_LINKS ${_LINKS} Threads::Threads)
|
||||
|
|
Loading…
Reference in New Issue