bug 567: --enable-static does not work on i686
authorAndrey Hippo <ahippo@yandex.ru>
Tue, 19 May 2009 15:39:15 +0200
changeset 4450 0ca9b9b410a0
parent 4449 c11b6d768ab3
child 4451 b1e16a025279
bug 567: --enable-static does not work on i686
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':