From 4eb2b4f53d015e5e59c3caf16576aa302a14a3b7 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Fri, 26 Mar 2021 18:08:45 +0100 Subject: [PATCH] Potential fix for CI issue? --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1eeb4cb..28bb03e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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()