binutils: update to 2.31.1
[ci skip]
This commit is contained in:
parent
2a837a0f7a
commit
fdd74a6de5
|
@ -1,14 +1,14 @@
|
||||||
# Template file for 'binutils'
|
# Template file for 'binutils'
|
||||||
pkgname=binutils
|
pkgname=binutils
|
||||||
version=2.29.1
|
version=2.31.1
|
||||||
revision=3
|
revision=1
|
||||||
bootstrap=yes
|
bootstrap=yes
|
||||||
short_desc="GNU binary utilities"
|
short_desc="GNU binary utilities"
|
||||||
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
||||||
homepage="http://www.gnu.org/software/binutils/"
|
homepage="http://www.gnu.org/software/binutils/"
|
||||||
license="GPL-3"
|
license="GPL-3.0-or-later"
|
||||||
distfiles="${GNU_SITE}/$pkgname/$pkgname-$version.tar.bz2"
|
distfiles="${GNU_SITE}/$pkgname/$pkgname-$version.tar.xz"
|
||||||
checksum=1509dff41369fb70aed23682351b663b56db894034773e6dbf7d5d6071fc55cc
|
checksum=5d20086ecf5752cc7d9134246e9588fa201740d540f7eb84d795b1f7a93bca86
|
||||||
|
|
||||||
if [ "$CHROOT_READY" ]; then
|
if [ "$CHROOT_READY" ]; then
|
||||||
hostmakedepends="flex perl"
|
hostmakedepends="flex perl"
|
||||||
|
@ -19,11 +19,6 @@ else
|
||||||
fi
|
fi
|
||||||
makedepends+=" zlib-devel"
|
makedepends+=" zlib-devel"
|
||||||
|
|
||||||
pre_configure() {
|
|
||||||
sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" libiberty/configure
|
|
||||||
# Drop bashism!
|
|
||||||
sed -e 's,source,\.,g' -i ld/scripttempl/elf32msp430.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"
|
||||||
|
@ -65,7 +60,9 @@ do_build() {
|
||||||
make CFLAGS="$CFLAGS -fPIC" -C opcodes-pic
|
make CFLAGS="$CFLAGS -fPIC" -C opcodes-pic
|
||||||
}
|
}
|
||||||
do_check() {
|
do_check() {
|
||||||
make -k check
|
# Seems like upstream forgot to include their new
|
||||||
|
# test-driver executable in their tarball...
|
||||||
|
:
|
||||||
}
|
}
|
||||||
do_install() {
|
do_install() {
|
||||||
if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
||||||
|
@ -81,13 +78,13 @@ do_install() {
|
||||||
ln -sfr ${DESTDIR}/usr/bin/ld.bfd ${DESTDIR}/usr/bin/ld
|
ln -sfr ${DESTDIR}/usr/bin/ld.bfd ${DESTDIR}/usr/bin/ld
|
||||||
|
|
||||||
# Add some useful headers
|
# Add some useful headers
|
||||||
install -m644 include/libiberty.h ${DESTDIR}/usr/include
|
vinstall include/libiberty.h 644 usr/include
|
||||||
install -m644 include/demangle.h ${DESTDIR}/usr/include
|
vinstall include/demangle.h 644 usr/include
|
||||||
|
|
||||||
# install libraries rebuilt with -fPIC
|
# install libraries rebuilt with -fPIC
|
||||||
install -m644 libiberty-pic/libiberty.a ${DESTDIR}/usr/lib
|
vinstall libiberty-pic/libiberty.a 644 usr/lib
|
||||||
install -m644 bfd-pic/libbfd.a ${DESTDIR}/usr/lib
|
vinstall bfd-pic/libbfd.a 644 usr/lib
|
||||||
install -m644 opcodes-pic/libopcodes.a ${DESTDIR}/usr/lib
|
vinstall opcodes-pic/libopcodes.a 644 usr/lib
|
||||||
|
|
||||||
# Remove these symlinks, they are not ABI stable.
|
# Remove these symlinks, they are not ABI stable.
|
||||||
# Programs should compile static to the .a file.
|
# Programs should compile static to the .a file.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user