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
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')