Fixed version of previous.
authorCarl Hetherington <cth@carlh.net>
Thu, 20 Apr 2017 09:43:22 +0000 (10:43 +0100)
committerCarl Hetherington <cth@carlh.net>
Thu, 20 Apr 2017 09:43:22 +0000 (10:43 +0100)
cscript

diff --git a/cscript b/cscript
index 764010e4efdc42f102a1f22fb6df4be0f0823e04..08a07201a8ac1b5e135ff5daa815cc835cb9dc07 100644 (file)
--- a/cscript
+++ b/cscript
 
 def build(target, options):
     cmd = './configure --prefix=%s --disable-shared --enable-static ' % target.directory
-    environment = ''
     if target.debug:
         cmd += '--enable-debug '
     if target.platform == 'linux':
         cmd += '--with-pulse --with-alsa'
         if target.distro == 'debian' and target.version == '8' and target.bits == 32:
-            environment = 'LDFLAGS=-lpulse'
+            target.set('LDFLAGS', '-lpulse')
     elif target.platform == 'windows':
         target.append_with_space('CXXFLAGS', '-Iinclude')
         cmd += '--with-wasapi --with-ds --host=%s-w64-mingw32' % target.mingw_name
@@ -33,5 +32,5 @@ def build(target, options):
         cmd += '--with-core' % common
 
     target.command(cmd)
-    target.command('%s make -j%d' % (environment, target.parallel))
+    target.command('make -j%d' % target.parallel)
     target.command('make install')