diff options
author | Ferdinand Thiessen <rpm@fthiessen.de> | 2016-06-27 03:03:42 +0200 |
---|---|---|
committer | Ferdinand Thiessen <rpm@fthiessen.de> | 2016-06-27 03:03:42 +0200 |
commit | 9e751178eb45d048d6edafdd13663fd2dea047f9 (patch) | |
tree | 04faa09da57868e0fdc37dbc77d40078719d5073 /platform | |
parent | 8362bb1434b16724b4a1ef959725fe009a58c614 (diff) |
Fix compiling for X11 on non-86, this fixes #5444
Diffstat (limited to 'platform')
-rw-r--r-- | platform/x11/detect.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/platform/x11/detect.py b/platform/x11/detect.py index 5f272536ba..54940866b2 100644 --- a/platform/x11/detect.py +++ b/platform/x11/detect.py @@ -209,5 +209,7 @@ def configure(env): if (env["use_static_cpp"]=="yes"): env.Append(LINKFLAGS=['-static-libstdc++']) - env["x86_opt_gcc"]=True + list_of_x86 = ['x86_64', 'x86', 'i386', 'i586'] + if any(platform.machine() in s for s in list_of_x86): + env["x86_opt_gcc"]=True |