chroot-binutils: repair bootstrap build; drop bashism.
This commit is contained in:
parent
b594820048
commit
0fd6257912
1 changed files with 6 additions and 1 deletions
|
@ -10,12 +10,17 @@ license="GPL-3"
|
||||||
distfiles="${KERNEL_SITE}/devel/binutils/binutils-$version.tar.xz"
|
distfiles="${KERNEL_SITE}/devel/binutils/binutils-$version.tar.xz"
|
||||||
checksum=c2229d5d4067c782b67cfaf7f049acd8361407c0870991bc5430be5c548f6825
|
checksum=c2229d5d4067c782b67cfaf7f049acd8361407c0870991bc5430be5c548f6825
|
||||||
|
|
||||||
if [ "$IN_CHROOT" ]; then
|
if [ "$CHROOT_READY" ]; then
|
||||||
hostmakedepends="flex perl"
|
hostmakedepends="flex perl"
|
||||||
fi
|
fi
|
||||||
makedepends="zlib-devel"
|
makedepends="zlib-devel"
|
||||||
bootstrap=yes
|
bootstrap=yes
|
||||||
|
|
||||||
|
pre_configure() {
|
||||||
|
# Drop bashism!
|
||||||
|
sed -e 's,source,\.,g' -i ld/scripttempl/elf.sc
|
||||||
|
}
|
||||||
|
|
||||||
do_configure() {
|
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"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue