summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2016-02-04 20:47:19 -0300
committerJuan Linietsky <reduzio@gmail.com>2016-02-04 20:47:19 -0300
commit9010a25c0130cfa1fa407922cfb034c4f25b6bae (patch)
tree2e8501b75def023a576c6e4d0c7287365702d595
parent80e88c6a5024a019670ca3dc6327ee389c34f346 (diff)
added option to link libstdc++ statically
-rw-r--r--platform/x11/detect.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/platform/x11/detect.py b/platform/x11/detect.py
index bb4bf9bd6f..f49475a2d5 100644
--- a/platform/x11/detect.py
+++ b/platform/x11/detect.py
@@ -52,6 +52,7 @@ def get_opts():
return [
('use_llvm','Use llvm compiler','no'),
+ ('use_static_cpp','link stdc++ statically','no'),
('use_sanitizer','Use llvm compiler sanitize address','no'),
('use_leak_sanitizer','Use llvm compiler sanitize memory leaks','no'),
('pulseaudio','Detect & Use pulseaudio','yes'),
@@ -203,5 +204,8 @@ def configure(env):
env.Append(CPPFLAGS=['-DNEW_WM_API'])
env.ParseConfig('pkg-config xinerama --cflags --libs')
+ if (env["use_static_cpp"]=="yes"):
+ env.Append(LINKFLAGS=['-static-libstdc++'])
+
env["x86_opt_gcc"]=True