diff --git a/native/projects/lcpu/CMakeLists.txt b/native/projects/lcpu/CMakeLists.txt index a0bd888..c6f0cf7 100644 --- a/native/projects/lcpu/CMakeLists.txt +++ b/native/projects/lcpu/CMakeLists.txt @@ -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 diff --git a/native/projects/lcpu/src/main.cpp b/native/projects/lcpu/src/main.cpp index 9d10ac9..669c302 100644 --- a/native/projects/lcpu/src/main.cpp +++ b/native/projects/lcpu/src/main.cpp @@ -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; } diff --git a/native/projects/lucore/src/Library.cpp b/native/projects/lucore/src/Library.cpp index 58552fd..bf82a32 100644 --- a/native/projects/lucore/src/Library.cpp +++ b/native/projects/lucore/src/Library.cpp @@ -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