remove unnecessary and *nix-centric LANG= from start of command used to get gcc versi...
authorPaul Davis <paul@linuxaudiosystems.com>
Thu, 5 Dec 2013 19:43:32 +0000 (14:43 -0500)
committerPaul Davis <paul@linuxaudiosystems.com>
Thu, 5 Dec 2013 19:43:32 +0000 (14:43 -0500)
wscript

diff --git a/wscript b/wscript
index 6fe36608d66fc4115e0118b7b70e6c3da091020f..d6410848f25a1dd3d51eed8c900003c14dcf5a62 100644 (file)
--- a/wscript
+++ b/wscript
@@ -6,6 +6,7 @@ import re
 import string
 import subprocess
 import sys
+import platform as PLATFORM
 
 def fetch_git_revision ():
     cmd = "git describe HEAD"
@@ -85,7 +86,7 @@ i18n_children = [
 # Version stuff
 
 def fetch_gcc_version (CC):
-    cmd = "LANG= %s --version" % CC
+    cmd = "%s --version" % CC
     output = subprocess.Popen(cmd, shell=True, stderr=subprocess.STDOUT, stdout=subprocess.PIPE).communicate()[0].splitlines()
     o = output[0].decode('utf-8')
     version = o.split(' ')[2].split('.')
@@ -127,7 +128,7 @@ def set_compiler_flags (conf,opt):
     optimization_flags = []
     debug_flags = []
 
-    u = os.uname ()
+    u = PLATFORM.uname ()
     cpu = u[4]
     platform = u[0].lower()
     version = u[2]