summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)