commit:     4fde3f6303157ee2406dbbf31c2d5577f77c164b
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Apr  7 05:12:37 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Apr 13 00:26:13 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4fde3f63

gnustep-base/gnustep-base: 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 <AT> gentoo.org>

 gnustep-base/gnustep-base/gnustep-base-1.27.0.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gnustep-base/gnustep-base/gnustep-base-1.27.0.ebuild 
b/gnustep-base/gnustep-base/gnustep-base-1.27.0.ebuild
index 650cd7372bb..ac7e08a85e0 100644
--- a/gnustep-base/gnustep-base/gnustep-base-1.27.0.ebuild
+++ b/gnustep-base/gnustep-base/gnustep-base-1.27.0.ebuild
@@ -2,7 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
-inherit eutils gnustep-base
+inherit eutils gnustep-base toolchain-funcs
 
 DESCRIPTION="A library of general-purpose, non-graphical Objective C objects"
 HOMEPAGE="http://www.gnustep.org";
@@ -38,7 +38,7 @@ src_configure() {
 
        local myconf
        if use libffi ; then
-               myconf="--enable-libffi --disable-ffcall 
--with-ffi-include=$(pkg-config --variable=includedir libffi)"
+               myconf="--enable-libffi --disable-ffcall 
--with-ffi-include=$($(tc-getPKG_CONFIG) --variable=includedir libffi)"
        else
                myconf="--disable-libffi --enable-ffcall"
        fi

Reply via email to