static link libstdc++ because it doesnt work if i dont...

This commit is contained in:
Lily Tsuru 2023-07-18 06:00:04 -04:00
parent c59dcfc614
commit cd1a80e4e4
3 changed files with 9 additions and 3 deletions

View File

@ -34,7 +34,12 @@ add_library(lcpu_native SHARED
)
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
target_link_options(lcpu_native PRIVATE "-Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/gmod_abi.ver")
target_link_options(lcpu_native PRIVATE
"-Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/gmod_abi.ver"
# screw it, dude
"-static-libstdc++"
"-static-libgcc"
)
endif()
target_link_libraries(lcpu_native

View File

@ -11,7 +11,7 @@ GMOD_MODULE_OPEN() {
lucore::LogInfo("Hello Source World :) {} {}", 123.456, "This should work");
lucore::LogWarning("test");
LUCORE_CHECK(false, "this should bring the process down");
//LUCORE_CHECK(false, "this should bring the process down");
return 0;
}

View File

@ -11,7 +11,8 @@ namespace lucore {
#ifdef _WIN32
return std::format("{}.dll", dllName);
#else
return std::format("lib{}.so", dllName);
return
std::format("lib{}.so", dllName);
#endif
}
} // namespace