mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-30 01:12:58 +02:00
binutils: don't use sysroot in cross builds, only use it to build.
This commit is contained in:
parent
eb3ff40682
commit
c8180091bf
1 changed files with 7 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'binutils'
|
# Template file for 'binutils'
|
||||||
pkgname=binutils
|
pkgname=binutils
|
||||||
version=2.23.52.0.2
|
version=2.23.52.0.2
|
||||||
revision=2
|
revision=3
|
||||||
hostmakedepends="flex perl"
|
hostmakedepends="flex perl"
|
||||||
makedepends="zlib-devel"
|
makedepends="zlib-devel"
|
||||||
short_desc="GNU binary utilities"
|
short_desc="GNU binary utilities"
|
||||||
|
@ -19,8 +19,12 @@ do_configure() {
|
||||||
if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
||||||
CONFIGFLAG="--enable-64-bit-bfd --enable-multilib"
|
CONFIGFLAG="--enable-64-bit-bfd --enable-multilib"
|
||||||
fi
|
fi
|
||||||
|
if [ "$CROSS_BUILD" ]; then
|
||||||
./configure ${CONFIGURE_SHARED_ARGS} --enable-threads \
|
# Do not use CONFIGURE_SHARED_ARGS nor build_style=gnu-configure,
|
||||||
|
# avoiding --with-sysroot to $XBPS_CROSS_BASE.
|
||||||
|
CONFIGFLAG="--host=$XBPS_CROSS_TRIPLET --with-build-sysroot=$XBPS_CROSS_BASE"
|
||||||
|
fi
|
||||||
|
./configure --prefix=/usr --enable-threads \
|
||||||
--enable-plugins --enable-secureplt --with-mmap \
|
--enable-plugins --enable-secureplt --with-mmap \
|
||||||
--enable-shared --disable-bootstrap $CONFIGFLAG
|
--enable-shared --disable-bootstrap $CONFIGFLAG
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue