You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-21 14:57:09 +00:00
added option to link libstdc++ statically
This commit is contained in:
@@ -52,6 +52,7 @@ def get_opts():
|
|||||||
|
|
||||||
return [
|
return [
|
||||||
('use_llvm','Use llvm compiler','no'),
|
('use_llvm','Use llvm compiler','no'),
|
||||||
|
('use_static_cpp','link stdc++ statically','no'),
|
||||||
('use_sanitizer','Use llvm compiler sanitize address','no'),
|
('use_sanitizer','Use llvm compiler sanitize address','no'),
|
||||||
('use_leak_sanitizer','Use llvm compiler sanitize memory leaks','no'),
|
('use_leak_sanitizer','Use llvm compiler sanitize memory leaks','no'),
|
||||||
('pulseaudio','Detect & Use pulseaudio','yes'),
|
('pulseaudio','Detect & Use pulseaudio','yes'),
|
||||||
@@ -203,5 +204,8 @@ def configure(env):
|
|||||||
env.Append(CPPFLAGS=['-DNEW_WM_API'])
|
env.Append(CPPFLAGS=['-DNEW_WM_API'])
|
||||||
env.ParseConfig('pkg-config xinerama --cflags --libs')
|
env.ParseConfig('pkg-config xinerama --cflags --libs')
|
||||||
|
|
||||||
|
if (env["use_static_cpp"]=="yes"):
|
||||||
|
env.Append(LINKFLAGS=['-static-libstdc++'])
|
||||||
|
|
||||||
env["x86_opt_gcc"]=True
|
env["x86_opt_gcc"]=True
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user