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

net-news/rsstail: 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>

 net-news/rsstail/rsstail-2.1.ebuild           | 4 ++--
 net-news/rsstail/rsstail-2.1_p20200310.ebuild | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/net-news/rsstail/rsstail-2.1.ebuild 
b/net-news/rsstail/rsstail-2.1.ebuild
index 626c4b85543..a97a15db70c 100644
--- a/net-news/rsstail/rsstail-2.1.ebuild
+++ b/net-news/rsstail/rsstail-2.1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -21,7 +21,7 @@ src_compile() {
        emake \
                CC="$(tc-getCC)" \
                CFLAGS="${CFLAGS} -DVERSION=\\\"\$(VERSION)\\\"" \
-               LDFLAGS="${LDFLAGS} $(pkg-config --libs mrss)"
+               LDFLAGS="${LDFLAGS} $($(tc-getPKG_CONFIG) --libs mrss)"
 }
 
 src_install() {

diff --git a/net-news/rsstail/rsstail-2.1_p20200310.ebuild 
b/net-news/rsstail/rsstail-2.1_p20200310.ebuild
index b795f9e6499..183b4698fa0 100644
--- a/net-news/rsstail/rsstail-2.1_p20200310.ebuild
+++ b/net-news/rsstail/rsstail-2.1_p20200310.ebuild
@@ -23,7 +23,7 @@ src_compile() {
        emake \
                CC="$(tc-getCC)" \
                CFLAGS="${CFLAGS} -DVERSION=\\\"\$(VERSION)\\\"" \
-               LDFLAGS="${LDFLAGS} $(pkg-config --libs mrss)"
+               LDFLAGS="${LDFLAGS} $($(tc-getPKG_CONFIG) --libs mrss)"
 }
 
 src_test() {

Reply via email to