Merge.
[rtaudio-cdist.git] / cscript
diff --git a/cscript b/cscript
index 2b46e963f267775b1754bd2d7d649de62bca8b24..764010e4efdc42f102a1f22fb6df4be0f0823e04 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'
     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')