diff --git a/CMakeLists.txt b/CMakeLists.txt index d62a844..75fd3d9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -143,7 +143,7 @@ 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(_TESTLINKS ${_TESTLINKS} -static-libgcc -static-libstdc++ -Wl,-Bstatic -lstdc++ -lpthread) + SET(_TESTLINKS ${_TESTLINKS} -lpthread -static-libgcc -static-libstdc++ -Wl,-Bstatic -lstdc++) else() SET(_LINKS ${_LINKS} Threads::Threads) endif()