diff --git a/CMakeLists.txt b/CMakeLists.txt index c0f5c87..1338768 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -114,7 +114,7 @@ else() set(CMAKE_CXX_FLAGS_DEBUG "") set(CMAKE_C_FLAGS_DEBUG "") - set(GODOT_LINKER_FLAGS "-Wl,--gc-sections,-R,'$$ORIGIN'") + set(GODOT_LINKER_FLAGS "-static-libgcc -static-libstdc++ -Wl,--gc-sections,-R,'$$ORIGIN'") set(CMAKE_RANLIB "gcc-ranlib") set(GODOT_COMPILE_FLAGS "-fPIC -flto -fvisibility=hidden -fvisibility-inlines-hidden -ffunction-sections -fdata-sections -fexceptions -frtti -pthread")