diff --git a/platform/x11/detect.py b/platform/x11/detect.py index c52cdd35119..9dfd4349477 100644 --- a/platform/x11/detect.py +++ b/platform/x11/detect.py @@ -206,5 +206,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