Fix win32 build with xerces.
authorCarl Hetherington <cth@carlh.net>
Fri, 13 Dec 2019 16:10:51 +0000 (17:10 +0100)
committerCarl Hetherington <cth@carlh.net>
Fri, 13 Dec 2019 23:44:11 +0000 (00:44 +0100)
wscript

diff --git a/wscript b/wscript
index 5de4fde542afb2ed058e0816a9d93973797c83d1..957fd3469c9880c5ba3292b55310e3430d2c60ce 100644 (file)
--- a/wscript
+++ b/wscript
@@ -126,6 +126,10 @@ def configure(conf):
 
     conf.check_cfg(package='sndfile', args='--cflags --libs', uselib_store='SNDFILE', mandatory=False)
     conf.check_cfg(package='xerces-c', args='--cflags --libs', uselib_store='XERCES', mandatory=True)
+    if conf.options.target_windows:
+        # XXX: it feels like there should be a more elegant way to get these included
+        conf.env.LIB_XERCES.append('curl')
+        conf.env.LIB_XERCES.append('ws2_32')
 
     if conf.options.static:
         if conf.options.jpeg == 'oj2':