From 2546751f648d44d2e00a81d42d57c15c577d091e Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Fri, 26 Mar 2021 17:59:40 +0100 Subject: [PATCH] Further adding back pthread to dynamically linking. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 75fd3d9..1eeb4cb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)