From 1a7014c653430786e1e08861311dfbe6f25216da Mon Sep 17 00:00:00 2001 From: Roger Chang Date: Fri, 20 Oct 2023 11:37:59 +0800 Subject: [PATCH] scons: Explicit the config option HAVE_PKG_CONFIG type boolean The scons function Detect will return the program name if the program is exists in the system. However, the HAVE_PKG_CONFIG is used to check the pkg-config program is exists and it should be the boolean type. Change-Id: I18c4813d36eea68b8851a41db41777bdb2a80b7b --- SConstruct | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SConstruct b/SConstruct index 32e0c36e09..e7fa4b53b7 100755 --- a/SConstruct +++ b/SConstruct @@ -636,7 +636,7 @@ for variant_path in variant_paths: LINKFLAGS=['-Wl,--no-as-needed', '-lprofiler', '-Wl,--as-needed']) - env['HAVE_PKG_CONFIG'] = env.Detect('pkg-config') + env['HAVE_PKG_CONFIG'] = env.Detect('pkg-config') == 'pkg-config' with gem5_scons.Configure(env) as conf: # On Solaris you need to use libsocket for socket ops