common/xbps-src: set PKG_CONFIG{,FOR_BUILD} env vars

This commit is contained in:
John 2020-05-07 19:43:49 +02:00
parent e9974180ce
commit 82734d940c
No known key found for this signature in database
GPG key ID: 5FDE97AF468A09B7
3 changed files with 4 additions and 3 deletions

View file

@ -52,7 +52,7 @@ ld = '${LD}'
strip = '${STRIP}'
readelf = '${READELF}'
objcopy = '${OBJCOPY}'
pkgconfig = 'pkg-config'
pkgconfig = '${PKG_CONFIG}'
rust = 'rustc'
g-ir-scanner = '${XBPS_CROSS_BASE}/usr/bin/g-ir-scanner'
g-ir-compiler = '${XBPS_CROSS_BASE}/usr/bin/g-ir-compiler'
@ -88,7 +88,6 @@ do_configure() {
if [ "$CROSS_BUILD" ]; then
configure_args+=" --cross-file=${meson_crossfile}"
export PKG_CONFIG_FOR_BUILD="/usr/bin/pkg-config"
fi
${meson_cmd} \

View file

@ -107,7 +107,7 @@ HostLibraries=/usr/lib
Spec=${wrksrc}/.host-spec/linux-g++
TargetSpec=${wrksrc}/.target-spec/linux-g++
_EOF
qmake_args="-qtconf ${wrksrc}/qt.conf PKG_CONFIG_EXECUTABLE=${XBPS_WRAPPERDIR}/pkg-config"
qmake_args="-qtconf ${wrksrc}/qt.conf PKG_CONFIG_EXECUTABLE=${XBPS_WRAPPERDIR}/${PKG_CONFIG}"
${qmake} ${qmake_args} \
PREFIX=/usr \
QT_INSTALL_PREFIX=/usr \

View file

@ -514,6 +514,7 @@ setup_pkg() {
export CPP_FOR_BUILD="cpp"
export FC_FOR_BUILD="gfortran"
export LD_FOR_BUILD="ld"
export PKG_CONFIG_FOR_BUILD="/usr/bin/pkg-config"
export CFLAGS_FOR_BUILD="$XBPS_CFLAGS"
export CXXFLAGS_FOR_BUILD="$XBPS_CXXFLAGS"
export CPPFLAGS_FOR_BUILD="$XBPS_CPPFLAGS"
@ -536,6 +537,7 @@ setup_pkg() {
export OBJCOPY="${XBPS_CROSS_TRIPLET}-objcopy"
export NM="${XBPS_CROSS_TRIPLET}-nm"
export READELF="${XBPS_CROSS_TRIPLET}-readelf"
export PKG_CONFIG="${XBPS_CROSS_TRIPLET}-pkg-config"
# Target tools
export CC_target="$CC"
export CXX_target="$CXX"