scons: make sure that we set the PKG_CONFIG_PATH before build
This commit is contained in:
parent
6f6b161c7c
commit
bdc184c686
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue