summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-04-07 06:11:55 +0100
committerSam James <sam@gentoo.org>2021-04-13 00:26:07 +0000
commit9731c78c5d65f8448a2793c5a50be26da8bd96b9 (patch)
tree21880b9a7898b59b72114e2d54f78ec85d084662 /dev-lang/mercury-extras
parentdev-java/jamvm: call pkg-config via toolchain-funcs.eclass helper (diff)
downloadgentoo-9731c78c5d65f8448a2793c5a50be26da8bd96b9.tar.gz
gentoo-9731c78c5d65f8448a2793c5a50be26da8bd96b9.tar.bz2
gentoo-9731c78c5d65f8448a2793c5a50be26da8bd96b9.zip
dev-lang/mercury-extras: call pkg-config via toolchain-funcs.eclass helper
This ensures we call the correct pkg-config in e.g. cross. Package-Manager: Portage-3.0.14-prefix, Repoman-3.0.2 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-lang/mercury-extras')
-rw-r--r--dev-lang/mercury-extras/mercury-extras-20.06.ebuild6
1 files changed, 3 insertions, 3 deletions
diff --git a/dev-lang/mercury-extras/mercury-extras-20.06.ebuild b/dev-lang/mercury-extras/mercury-extras-20.06.ebuild
index 7a5e3bfc206c..1a530b445818 100644
--- a/dev-lang/mercury-extras/mercury-extras-20.06.ebuild
+++ b/dev-lang/mercury-extras/mercury-extras-20.06.ebuild
@@ -3,7 +3,7 @@
EAPI=7
-inherit eutils multilib vcs-clean
+inherit eutils multilib toolchain-funcs vcs-clean
PATCHSET_VER="0"
MY_P=mercury-srcdist-${PV}
@@ -98,9 +98,9 @@ mercury_pkg_setup() {
>> "${S}"/${mercury_pkg_dir}/Mercury.options
if test -n "$mercury_pkg_deps"; then
- echo "EXTRA_CFLAGS += $(pkg-config --cflags ${mercury_pkg_deps/,/ })" \
+ echo "EXTRA_CFLAGS += $($(tc-getPKG_CONFIG) --cflags ${mercury_pkg_deps/,/ })" \
>> "${S}"/${mercury_pkg_dir}/Mercury.options
- echo "EXTRA_LDFLAGS += $(pkg-config --libs ${mercury_pkg_deps/,/ })" \
+ echo "EXTRA_LDFLAGS += $($(tc-getPKG_CONFIG) --libs ${mercury_pkg_deps/,/ })" \
>> "${S}"/${mercury_pkg_dir}/Mercury.options
fi