chroot-binutils: repair bootstrap build; drop bashism.

This commit is contained in:
Juan RP 2013-10-18 10:21:49 +02:00
parent b594820048
commit 0fd6257912

View file

@ -10,12 +10,17 @@ license="GPL-3"
distfiles="${KERNEL_SITE}/devel/binutils/binutils-$version.tar.xz"
checksum=c2229d5d4067c782b67cfaf7f049acd8361407c0870991bc5430be5c548f6825
if [ "$IN_CHROOT" ]; then
if [ "$CHROOT_READY" ]; then
hostmakedepends="flex perl"
fi
makedepends="zlib-devel"
bootstrap=yes
pre_configure() {
# Drop bashism!
sed -e 's,source,\.,g' -i ld/scripttempl/elf.sc
}
do_configure() {
if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
CONFIGFLAG="--enable-64-bit-bfd --enable-multilib"