Revert "Link pthreads when linking statically."
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This reverts commit 2c7082a7
This commit is contained in:
parent
b1d9add9a7
commit
64c5a94800
|
@ -21,9 +21,6 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
|||
add_link_options(-fuse-ld=lld)
|
||||
endif ()
|
||||
|
||||
set(THREADS_PREFER_PTHREAD_FLAG ON)
|
||||
find_package(Threads REQUIRED)
|
||||
|
||||
if (WINDOWS)
|
||||
SET(CMAKE_SYSTEM_NAME Windows)
|
||||
ADD_DEFINITIONS(-D WINDOWS=1)
|
||||
|
@ -130,7 +127,7 @@ endif ()
|
|||
|
||||
if (STATICC)
|
||||
message(STATUS "Linking C library statically")
|
||||
SET(_LINKS ${_LINKS} -static-libgcc -static-libstdc++ -Wl,-Bstatic -lstdc++ -lpthread)
|
||||
SET(_LINKS ${_LINKS} -static-libgcc -static-libstdc++)
|
||||
endif()
|
||||
|
||||
target_link_libraries(pkmnLib PUBLIC ${_LINKS})
|
||||
|
|
Loading…
Reference in New Issue