summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2014-03-17 16:24:09 +0000
committerDavid Robillard <d@drobilla.net>2014-03-17 16:24:09 +0000
commit18896bf70441ded311f3fe43dc9c23f31ef35bd5 (patch)
tree5a9bd20be3c99af043094ea7a386fab112c3bab0 /wscript
parent6019a68609a3798e83cb28924376a320a18386bc (diff)
downloadsord-18896bf70441ded311f3fe43dc9c23f31ef35bd5.tar.gz
sord-18896bf70441ded311f3fe43dc9c23f31ef35bd5.tar.bz2
sord-18896bf70441ded311f3fe43dc9c23f31ef35bd5.zip
Explicitly pass -pthread flag when PCRE is present to work around broken PCRE installs.
git-svn-id: http://svn.drobilla.net/sord/trunk@294 3d64ff67-21c5-427c-a301-fe4f08042e5a
Diffstat (limited to 'wscript')
-rw-r--r--wscript5
1 files changed, 4 insertions, 1 deletions
diff --git a/wscript b/wscript
index 3195cf2..3a56417 100644
--- a/wscript
+++ b/wscript
@@ -204,7 +204,10 @@ def build(bld):
if bld.env.STATIC_PROGS:
obj.env.SHLIB_MARKER = obj.env.STLIB_MARKER
obj.linkflags = ['-static', '-Wl,--start-group']
- autowaf.use_lib(bld, obj, 'SERD PCRE')
+ autowaf.use_lib(bld, obj, 'SERD')
+ if i == 'sord_validate':
+ autowaf.use_lib(bld, obj, 'PCRE')
+ obj.cflags = '-pthread'
# Documentation
autowaf.build_dox(bld, 'SORD', SORD_VERSION, top, out)