From bdc184c686dc187cca82cede0e418db8dbc8eeb1 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Tue, 8 Feb 2011 03:27:08 +0000 Subject: [PATCH] scons: make sure that we set the PKG_CONFIG_PATH before build --- SConstruct | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/SConstruct b/SConstruct index 3172bc623..2290d5a27 100644 --- a/SConstruct +++ b/SConstruct @@ -1324,12 +1324,15 @@ if not HELP_REQUESTED and '-c' not in command_line_args: # dummy action in case there is nothing to uninstall, to avoid phony error.. env.Alias("uninstall", "") env['create_uninstall_target'] = create_uninstall_target + + if env['PKG_CONFIG_PATH']: + env['ENV']['PKG_CONFIG_PATH'] = env['PKG_CONFIG_PATH'] + # otherwise this variable == os.environ["PKG_CONFIG_PATH"] # export env so it is available in Sconscript files Export('env') - # clear the '_CPPDEFFLAGS' variable # for unknown reasons this variable puts -DNone # in the g++ args prompting unnecessary recompiles