chroot-binutils: don't use sysroot in cross builds, only use it to build.

This commit is contained in:
Juan RP 2013-05-26 06:27:16 +02:00
parent c8180091bf
commit 59cd15a1e4
1 changed files with 7 additions and 3 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'chroot-binutils' # Template file for 'chroot-binutils'
pkgname=chroot-binutils pkgname=chroot-binutils
version=2.23.52.0.2 version=2.23.52.0.2
revision=1 revision=2
wrksrc="binutils-${version}" wrksrc="binutils-${version}"
short_desc="GNU binary utilities -- for xbps-src use" short_desc="GNU binary utilities -- for xbps-src use"
maintainer="Juan RP <xtraeme@gmail.com>" maintainer="Juan RP <xtraeme@gmail.com>"
@ -20,8 +20,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} --disable-shared \ # 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 --disable-shared \
--enable-threads --disable-plugins \ --enable-threads --disable-plugins \
--with-mmap --disable-bootstrap ${CONFIGFLAG} --with-mmap --disable-bootstrap ${CONFIGFLAG}
} }