dev-lang/php: use tc-getPKG_CONFIG for $(pkg-config ...)

Untested as dev-db/libiodbc is broken, but it's better to have correct
examples in the tree.

Suggested-by: Eli Schwartz <eschwartz@gentoo.org>
Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
This commit is contained in:
Michael Orlitzky
2026-10-09 14:26:36 -04:00
parent d85ae49618
commit 1e0c865045
2 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -5,7 +5,7 @@ EAPI=8
WANT_AUTOMAKE="none"
POSTGRES_COMPAT=( {15..18} )
inherit flag-o-matic multilib postgres systemd
inherit flag-o-matic multilib postgres systemd toolchain-funcs
DESCRIPTION="The PHP language runtime engine"
HOMEPAGE="https://www.php.net/"
@@ -495,8 +495,8 @@ src_configure() {
# ./configure script checks for the headers using "test -f" and
# ignores your CFLAGS... and pdo_odbc_def_libdir prevents the
# build system from appending a nonsense -L flag.
local iodbc_ldflags=$(pkg-config --libs libiodbc)
local iodbc_cflags=$(pkg-config --cflags libiodbc)
local iodbc_ldflags=$($(tc-getPKG_CONFIG) --libs libiodbc)
local iodbc_cflags=$($(tc-getPKG_CONFIG) --cflags libiodbc)
our_conf+=(
pdo_odbc_def_libdir="${EPREFIX}/usr/$(get_libdir)"
pdo_odbc_def_incdir="${EPREFIX}/usr/include/iodbc"
+3 -3
View File
@@ -5,7 +5,7 @@ EAPI=8
WANT_AUTOMAKE="none"
POSTGRES_COMPAT=( {15..18} )
inherit flag-o-matic multilib postgres systemd
inherit flag-o-matic multilib postgres systemd toolchain-funcs
DESCRIPTION="The PHP language runtime engine"
HOMEPAGE="https://www.php.net/"
@@ -481,8 +481,8 @@ src_configure() {
# ./configure script checks for the headers using "test -f" and
# ignores your CFLAGS... and pdo_odbc_def_libdir prevents the
# build system from appending a nonsense -L flag.
local iodbc_ldflags=$(pkg-config --libs libiodbc)
local iodbc_cflags=$(pkg-config --cflags libiodbc)
local iodbc_ldflags=$($(tc-getPKG_CONFIG) --libs libiodbc)
local iodbc_cflags=$($(tc-getPKG_CONFIG) --cflags libiodbc)
our_conf+=(
pdo_odbc_def_libdir="${EPREFIX}/usr/$(get_libdir)"
pdo_odbc_def_incdir="${EPREFIX}/usr/include/iodbc"