Try to fix build on debian-8-32.
authorCarl Hetherington <cth@carlh.net>
Thu, 20 Apr 2017 09:42:18 +0000 (10:42 +0100)
committerCarl Hetherington <cth@carlh.net>
Thu, 20 Apr 2017 09:42:18 +0000 (10:42 +0100)
cscript

diff --git a/cscript b/cscript
index 3a1c8b3523d60a0a893987b8ddbaead538bd43b5..d22f7d38b815c2b1c6c0766bef2b6dc4703b7c89 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 += '%s --with-pulse --with-alsa'
+        if target.distro == 'debian' and target.version == '8' and target.bits == 32:
+            environment = 'LDFLAGS=-lpulse'
     elif target.platform == 'windows':
         target.append_with_space('CXXFLAGS', '-Iinclude')
         cmd += '--with-wasapi --with-ds --host=%s-w64-mingw32' % target.mingw_name
@@ -30,5 +33,5 @@ def build(target, options):
         cmd += '--with-core' % common
 
     target.command(cmd)
-    target.command('make -j%d' % target.parallel)
+    target.command('%s make -j%d' % (environment, target.parallel))
     target.command('make install')