Use internal target platform definition for pkg-config wrapper

This commit is contained in:
Neal Gompa 2020-10-19 14:48:03 -04:00
parent 9a091fe4b9
commit 5dea89a881
2 changed files with 6 additions and 2 deletions

View File

@ -2,6 +2,7 @@
# Multilib safe wrapper for pkg-config to call correct platform-specific version of pkg-config
TARGET_PLATFORM=$(rpm --eval '%{_target_platform}')
## Vendored definition of %_target_platform from redhat-rpm-config to avoid depending on it
TARGET_PLATFORM=$(rpm --eval '%{_target_cpu}-%{_vendor}-%{_target_os}%{?_gnu}')
exec "@PKGCONF_BINDIR@/${TARGET_PLATFORM}-pkg-config" "$@"

View File

@ -17,7 +17,7 @@
Name: pkgconf
Version: 1.7.3
Release: 4%{?dist}
Release: 5%{?dist}
Summary: Package compiler and linker metadata toolkit
License: ISC
@ -202,6 +202,9 @@ rm -rf %{buildroot}%{_datadir}/aclocal
%endif
%changelog
* Mon Oct 19 2020 Neal Gompa <ngompa13@gmail.com> - 1.7.3-5
- Use internal target platform definition for pkg-config wrapper
* Thu Oct 15 2020 Neal Gompa <ngompa13@gmail.com> - 1.7.3-4
- Fix pkg-config wrapper for armv7hl