From 0abda7e9381591278df1ca64c7e026f0c4bc01b1 Mon Sep 17 00:00:00 2001 From: Andrey Hippo Date: Tue, 19 May 2009 15:39:15 +0200 Subject: [PATCH] bug 567: --enable-static does not work on i686 --- wscript | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wscript b/wscript index 32257703b..43452ed41 100644 --- a/wscript +++ b/wscript @@ -6,6 +6,7 @@ import shutil import types import optparse import os.path +import re # WAF modules import pproc as subprocess @@ -300,7 +301,7 @@ def configure(conf): if Options.options.enable_static: if env['PLATFORM'].startswith('linux') and \ env['CXX_NAME'] == 'gcc': - if os.uname()[4] == 'i386': + if re.match('i[3-6]86', os.uname()[4]): conf.report_optional_feature("static", "Static build", True, '') env['ENABLE_STATIC_NS3'] = True elif os.uname()[4] == 'x86_64':