Removed static linking of stdc++

Cause issues with std::locale
This commit is contained in:
JackCarterSmith 2025-02-04 13:43:33 +01:00
parent f93424ef77
commit 98cac71b2a
Signed by: JackCarterSmith
GPG Key ID: 832E52F4E23F8F24

View File

@ -1,6 +1,6 @@
# CMakeLists.txt
# Written by JackCarterSmith, 2024
# Written by JackCarterSmith, 2025
# This file is released under the ProtoTank license.
cmake_minimum_required(VERSION 3.23)
@ -107,11 +107,11 @@ else()
endif()
# static linking of stdlib
if(MINGW)
list(APPEND LINKLIBS -static gcc stdc++ pthread -dynamic)
else()
list(APPEND LINKLIBS -Wl,-Bstatic -lgcc -lstdc++ -lpthread -Wl,-Bdynamic)
endif()
#if(MINGW)
# list(APPEND LINKLIBS -static gcc stdc++ pthread -dynamic)
#else()
# list(APPEND LINKLIBS -Wl,-Bstatic -lgcc -lstdc++ -lpthread -Wl,-Bdynamic)
#endif()
endif()
list(APPEND LINKLIBS ${EXTLIBS})
@ -119,7 +119,8 @@ target_compile_options(${PROJECT_NAME} PRIVATE ${COMPOPTS})
target_link_options(${PROJECT_NAME} PRIVATE ${LINKOPTS})
target_link_libraries(${PROJECT_NAME} ${LINKLIBS})
# Linux file format patch
add_custom_target(format-patch COMMAND dos2unix `git ls-files` WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
# GPG signature custom command
#add_custom_command(