# HG changeset patch # User Andrey Hippo # Date 1242740355 -7200 # Node ID 0ca9b9b410a05a05ad4fd962be6ebf009d7654d1 # Parent c11b6d768ab34255791f1d6d7e3405f98e12bb82 bug 567: --enable-static does not work on i686 diff -r c11b6d768ab3 -r 0ca9b9b410a0 wscript --- a/wscript Tue May 19 15:35:05 2009 +0200 +++ b/wscript Tue May 19 15:39:15 2009 +0200 @@ -6,6 +6,7 @@ import types import optparse import os.path +import re # WAF modules import pproc as subprocess @@ -300,7 +301,7 @@ 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':