Browse Source

Use static pthread for windows static builds

Signed-off-by: falkTX <falktx@falktx.com>
tags/v1.9.15
falkTX 4 years ago
parent
commit
78c93766af
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
2 changed files with 10 additions and 0 deletions
  1. +6
    -0
      example-clients/wscript
  2. +4
    -0
      tools/wscript

+ 6
- 0
example-clients/wscript View File

@@ -60,6 +60,8 @@ def build(bld):
prog.use += ['RT', 'M']
if bld.env['IS_SUN']:
prog.use += ['M']
if bld.env['IS_WINDOWS'] and bld.env['BUILD_STATIC']:
prog.env['LIB_PTHREAD'] = [':libwinpthread.a']
#prog.cflags = ['-Wno-deprecated-declarations', '-Wno-misleading-indentation']
#prog.cxxflags = ['-Wno-deprecated-declarations', '-Wno-misleading-indentation']

@@ -78,6 +80,8 @@ def build(bld):
prog.use += ['RT', 'SNDFILE']
if bld.env['IS_WINDOWS']:
prog.uselib = ['SNDFILE']
if bld.env['BUILD_STATIC']:
prog.env['LIB_PTHREAD'] = [':libwinpthread.a']
prog.target = 'jack_rec'

for example_lib, example_lib_source in list(example_libs.items()):
@@ -89,5 +93,7 @@ def build(bld):
lib.source = example_lib_source
if bld.env['IS_SUN']:
lib.env.append_value('LINKFLAGS', '-lm')
if bld.env['IS_WINDOWS'] and bld.env['BUILD_STATIC']:
prog.env['LIB_PTHREAD'] = [':libwinpthread.a']
lib.use = 'serverlib'
lib.install_path = '${ADDON_DIR}/'

+ 4
- 0
tools/wscript View File

@@ -43,6 +43,8 @@ def build(bld):
prog.use += ['RT', 'M']
if bld.env['IS_SUN']:
prog.use += ['M']
if bld.env['IS_WINDOWS'] and bld.env['BUILD_STATIC']:
prog.env['LIB_PTHREAD'] = [':libwinpthread.a']
#prog.cflags = ['-Wno-deprecated-declarations', '-Wno-misleading-indentation']
#prog.cxxflags = ['-Wno-deprecated-declarations', '-Wno-misleading-indentation']

@@ -59,6 +61,8 @@ def build(bld):
prog.use += ['READLINE']
if bld.env['IS_WINDOWS']:
prog.use += ['READLINE']
if bld.env['BUILD_STATIC']:
prog.env['LIB_PTHREAD'] = [':libwinpthread.a']
prog.target = 'jack_transport'

if bld.env['IS_LINUX'] or bld.env['IS_MACOSX']:


Loading…
Cancel
Save