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

games-fps/darkplaces: 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>

 games-fps/darkplaces/darkplaces-20140513-r1.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/games-fps/darkplaces/darkplaces-20140513-r1.ebuild 
b/games-fps/darkplaces/darkplaces-20140513-r1.ebuild
index 7ba3bcdb4ce..c0fafee1498 100644
--- a/games-fps/darkplaces/darkplaces-20140513-r1.ebuild
+++ b/games-fps/darkplaces/darkplaces-20140513-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -92,7 +92,7 @@ src_prepare() {
        # Only additional CFLAGS optimization is the -march flag
        local march=$(get-flag -march)
        sed -i \
-               -e "s:-lasound:$(pkg-config --libs alsa):" \
+               -e "s:-lasound:$($(tc-getPKG_CONFIG) --libs alsa):" \
                -e "/^CPUOPTIMIZATIONS/d" \
                -e '/^OPTIM_RELEASE/s/=.*/=$(CFLAGS)/' \
                -e '/^OPTIM_DEBUG/s/=.*/=$(CFLAGS)/' \

Reply via email to