summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2016-06-30 08:05:45 +0200
committerGitHub <noreply@github.com>2016-06-30 08:05:45 +0200
commitefe4c667884d069c444a3191fcfb2edb553cae82 (patch)
treeb051bc357c4427a700a84a8643252e72e4c905ab
parent3fc115e4338a80d58ffd9b6ddfbf6ddb01e01b2b (diff)
parent9e751178eb45d048d6edafdd13663fd2dea047f9 (diff)
Merge pull request #5445 from susnux/arch-detection
Fix compiling for X11 on non-86, this fixes #5444
-rw-r--r--platform/x11/detect.py4
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