Skip to content

Commit 8a07d28

Browse files
committed
Statically link the standard libraries
as it's required to actually work in Godot!
1 parent a20814e commit 8a07d28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ else()
114114
set(CMAKE_CXX_FLAGS_DEBUG "")
115115
set(CMAKE_C_FLAGS_DEBUG "")
116116

117-
set(GODOT_LINKER_FLAGS "-Wl,--gc-sections,-R,'$$ORIGIN'")
117+
set(GODOT_LINKER_FLAGS "-static-libgcc -static-libstdc++ -Wl,--gc-sections,-R,'$$ORIGIN'")
118118

119119
set(CMAKE_RANLIB "gcc-ranlib")
120120
set(GODOT_COMPILE_FLAGS "-fPIC -flto -fvisibility=hidden -fvisibility-inlines-hidden -ffunction-sections -fdata-sections -fexceptions -frtti -pthread")

0 commit comments

Comments
 (0)