Skip to content
Snippets Groups Projects
Commit cbfba84a authored by Todd Gamblin's avatar Todd Gamblin
Browse files

Merge pull request #849 from brettviren/bugfix/share-pkgconfig

Add  to sub dirs checked for pkg-config files.
parents 1568e64f b5ebd12f
No related branches found
No related tags found
No related merge requests found
...@@ -175,8 +175,8 @@ def set_build_environment_variables(pkg, env): ...@@ -175,8 +175,8 @@ def set_build_environment_variables(pkg, env):
# Add any pkgconfig directories to PKG_CONFIG_PATH # Add any pkgconfig directories to PKG_CONFIG_PATH
pkg_config_dirs = [] pkg_config_dirs = []
for p in dep_prefixes: for p in dep_prefixes:
for libdir in ('lib', 'lib64'): for maybe in ('lib', 'lib64', 'share'):
pcdir = join_path(p, libdir, 'pkgconfig') pcdir = join_path(p, maybe, 'pkgconfig')
if os.path.isdir(pcdir): if os.path.isdir(pcdir):
pkg_config_dirs.append(pcdir) pkg_config_dirs.append(pcdir)
env.set_path('PKG_CONFIG_PATH', pkg_config_dirs) env.set_path('PKG_CONFIG_PATH', pkg_config_dirs)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment