Fix missing parameters to pkg-config for libopenjp2. v1.9.1
authorCarl Hetherington <cth@carlh.net>
Wed, 13 Mar 2024 21:09:55 +0000 (22:09 +0100)
committerCarl Hetherington <cth@carlh.net>
Wed, 13 Mar 2024 21:09:55 +0000 (22:09 +0100)
wscript

diff --git a/wscript b/wscript
index ba74aa0f5a9d55242932c3fd1befb39a6f155ef6..bd17e61998e27f29b1ee832bba12661231deb82a 100644 (file)
--- a/wscript
+++ b/wscript
@@ -153,7 +153,7 @@ def configure(conf):
 
     if not patched_openjpeg:
         # We don't have our patched version so we need 2.5.0 to get the GUARD_BITS option
-        conf.check_cfg(package='libopenjp2', args='libopenjp2 >= 2.5.0', uselib_store='OPENJPEG', mandatory=True, msg='Checking for libopenjp2 >= 2.5.0')
+        conf.check_cfg(package='libopenjp2', args='libopenjp2 >= 2.5.0 --cflags --libs', uselib_store='OPENJPEG', mandatory=True, msg='Checking for libopenjp2 >= 2.5.0')
 
     if conf.options.static:
         conf.env.STLIB_OPENJPEG = ['openjp2']