armpl-gcc: fix PKG_CONFIG_PATH for 23.04 (#37001)

This commit is contained in:
Annop Wongwathanarat 2023-04-21 13:10:03 +01:00 committed by GitHub
parent cd2893640d
commit 2ca049e74a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -350,7 +350,9 @@ def make_pkgconfig_files(self):
symlink(f, f + ".pc")
def setup_dependent_build_environment(self, env, dependent_spec):
armpl_dir = get_armpl_prefix(self.spec)
if self.spec.satisfies("@:22"):
# pkgconfig directory is not in standard ("lib", "lib64", "share") location
armpl_dir = get_armpl_prefix(self.spec)
env.append_path("PKG_CONFIG_PATH", join_path(armpl_dir, "pkgconfig"))
else:
env.append_path("PKG_CONFIG_PATH", join_path(armpl_dir, "lib/pkgconfig"))