From 18896bf70441ded311f3fe43dc9c23f31ef35bd5 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 17 Mar 2014 16:24:09 +0000 Subject: 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 --- wscript | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'wscript') 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) -- cgit v1.2.1