From d69257d0b74497e57c18869cce36d0c9717d69c3 Mon Sep 17 00:00:00 2001 From: Timothee 'TTimo' Besset Date: Fri, 25 Nov 2022 07:39:24 -0600 Subject: [PATCH] xml2-config -> pkg-config, from @magicmyth's GtkR flatpak work --- config.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config.py b/config.py index 68d9abd6..ee9af4a3 100644 --- a/config.py +++ b/config.py @@ -229,11 +229,11 @@ class Config: env['CC'] = self.cc env['CXX'] = self.cxx try: - xml2 = subprocess.check_output( ['xml2-config', '--cflags'] ).decode( 'utf-8' ) + xml2 = subprocess.check_output( ['pkg-config', '--cflags', 'libxml-2.0'] ).decode( 'utf-8' ) except subprocess.CalledProcessError as cpe: - print( 'xml2-config failed with error code {} and output:{}'.format( cpe.returncode, cpe.output ) ) + print( 'pkg-config could not find libxml-2.0: failed with error code {} and output:{}'.format( cpe.returncode, cpe.output ) ) assert( False ) - env.ParseConfig( 'xml2-config --libs' ) + env.ParseConfig( 'pkg-config --libs libxml-2.0' ) #Need to strip on xml2-config output. It has a stray \n and that completely screws up scons calling g++ baseflags = [ '-pipe', '-Wall', '-fmessage-length=0', '-fvisibility=hidden', xml2.strip().split( ' ' ) ]