static link libstdc++ because it doesnt work if i dont...
This commit is contained in:
parent
c59dcfc614
commit
cd1a80e4e4
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue