summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-08-15 11:53:39 +0200
committerCarl Hetherington <cth@carlh.net>2024-08-15 13:46:05 +0200
commit523c3d002dace8b25df82a23890090306277fab3 (patch)
tree08a83866a3064278f8fc22c572b913d66e145231
parented52b561b8cc0a1a7d08855380486bf8a807dc19 (diff)
Fix --static-xmlsec option and use it for Centos 9 (#2858).
-rw-r--r--cscript2
-rw-r--r--wscript2
2 files changed, 4 insertions, 0 deletions
diff --git a/cscript b/cscript
index 65bead687..3d988ae4c 100644
--- a/cscript
+++ b/cscript
@@ -574,6 +574,8 @@ def configure_options(target, options, for_package=False):
opt += ' --static-boost --static-xmlpp'
elif target.version == '7':
opt += ' --workaround-gssapi'
+ elif target.version == 'stream9':
+ opt += ' --static-xmlsec'
if not options['gui']:
opt += ' --disable-gui'
diff --git a/wscript b/wscript
index d418ab6f4..83b69bd31 100644
--- a/wscript
+++ b/wscript
@@ -383,8 +383,10 @@ def configure(conf):
if conf.options.static_xmlsec:
if conf.check_cxx(lib='xmlsec1-openssl', mandatory=False):
conf.env.STLIB_XMLSEC = ['xmlsec1-openssl', 'xmlsec1']
+ conf.env.LIB_XMLSEC = ['ltdl']
else:
conf.env.STLIB_XMLSEC = ['xmlsec1']
+ conf.env.LIB_XMLSEC = ['ltdl']
else:
conf.env.LIB_XMLSEC = ['xmlsec1-openssl', 'xmlsec1']