build: pass pkg_config_path to check_cfg() when looking for libndn-cxx

Instead of modifying os.environ

Refs: #5042
Change-Id: I805894942b9828176f7eb0442ea617a324398989
This commit is contained in:
Davide Pesavento committed 2019-11-09 14:13:13 -05:00
1 parent d2ef9a7174
commit 772d747392
1 file changed
+2 -4
+2 -4
View File
@@ -15,10 +15,8 @@ def configure(conf):
conf.load(['compiler_cxx', 'gnu_dirs',
'default-compiler-flags'])
if 'PKG_CONFIG_PATH' not in os.environ:
os.environ['PKG_CONFIG_PATH'] = Utils.subst_vars('${LIBDIR}/pkgconfig', conf.env)
conf.check_cfg(package='libndn-cxx', args=['--cflags', '--libs'],
uselib_store='NDN_CXX', mandatory=True)
conf.check_cfg(package='libndn-cxx', args=['--cflags', '--libs'], uselib_store='NDN_CXX',
pkg_config_path=os.environ.get('PKG_CONFIG_PATH', '%s/pkgconfig' % conf.env.LIBDIR))
conf.check_compiler_flags()