common/xbps-src: set PKG_CONFIG{,FOR_BUILD} env vars
This commit is contained in:
parent
e9974180ce
commit
82734d940c
3 changed files with 4 additions and 3 deletions
|
@ -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} \
|
||||
|
|
|
@ -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 \
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue