mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
binutils: workaround for cross compiling with pkgconf and binutils
This commit is contained in:
parent
9f72f6aa6a
commit
da24bdf771
1 changed files with 3 additions and 0 deletions
|
@ -47,6 +47,8 @@ do_configure() {
|
||||||
if [ "$CROSS_BUILD" ]; then
|
if [ "$CROSS_BUILD" ]; then
|
||||||
# we don't want --with-sysroot=${XBPS_CROSS_BASE} like gnu-configure
|
# we don't want --with-sysroot=${XBPS_CROSS_BASE} like gnu-configure
|
||||||
conf+=" --host=${XBPS_CROSS_TRIPLET} --with-build-sysroot=${XBPS_CROSS_BASE}"
|
conf+=" --host=${XBPS_CROSS_TRIPLET} --with-build-sysroot=${XBPS_CROSS_BASE}"
|
||||||
|
|
||||||
|
vsed -e '/PKG_CONFIG_SYSROOT_DIR/d' -i ${XBPS_WRAPPERDIR}/${XBPS_CROSS_TRIPLET}-pkg-config
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# gprofng currently only supports x86 and aarch64 glibc.
|
# gprofng currently only supports x86 and aarch64 glibc.
|
||||||
|
@ -107,6 +109,7 @@ do_configure() {
|
||||||
--with-system-zlib \
|
--with-system-zlib \
|
||||||
--with-mmap \
|
--with-mmap \
|
||||||
--with-pic \
|
--with-pic \
|
||||||
|
--with-zstd \
|
||||||
$conf
|
$conf
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue