Try to fix Centos build.
authorCarl Hetherington <cth@carlh.net>
Wed, 1 Oct 2014 21:51:57 +0000 (22:51 +0100)
committerCarl Hetherington <cth@carlh.net>
Wed, 1 Oct 2014 21:51:57 +0000 (22:51 +0100)
wscript

diff --git a/wscript b/wscript
index f33dcef83ab354afd38b7440d3c965bbb8bdd27e..7924decea662b0f892592174fa8264410c44077d 100644 (file)
--- a/wscript
+++ b/wscript
@@ -236,6 +236,10 @@ def configure(conf):
     if conf.env.TARGET_DEBIAN:
         # libxml2 seems to be linked against this on Ubuntu but it doesn't mention it in its .pc file
         conf.check_cfg(package='liblzma', args='--cflags --libs', uselib_store='LZMA', mandatory=True)
+
+    if conf.env.TARGET_CENTOS_6 or conf.env.TARGET_CENTOS_7:
+        # libavcodec seems to be linked against this on Centos
+        conf.check_cfg(package='liblzma', args='--cflags --libs', uselib_store='LZMA', mandatory=True)
         
     if not conf.env.DISABLE_GUI and conf.env.TARGET_LINUX:
         conf.check_cfg(package='gtk+-2.0', args='--cflags --libs', uselib_store='GTK', mandatory=True)