Skip to content

Commit

Permalink
Statically link the standard libraries
Browse files Browse the repository at this point in the history
as it's required to actually work in Godot!
  • Loading branch information
Dudejoe870 committed Apr 5, 2024
1 parent a20814e commit 8a07d28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 8a07d28

Please sign in to comment.