2017-06-14 17:10:21 +00:00
|
|
|
# Automatically generated aport, do not edit!
|
|
|
|
# Generator: pmbootstrap aportgen binutils-aarch64
|
|
|
|
# Based on: main/binutils
|
|
|
|
|
|
|
|
|
|
|
|
pkgname="binutils-aarch64"
|
|
|
|
pkgver=2.28
|
2017-10-04 15:05:00 +00:00
|
|
|
pkgrel=3
|
2017-06-14 17:10:21 +00:00
|
|
|
pkgdesc="Tools necessary to build programs for aarch64 targets"
|
2017-11-27 20:40:38 +00:00
|
|
|
url="https://www.gnu.org/software/binutils/"
|
2017-06-14 17:10:21 +00:00
|
|
|
depends=""
|
|
|
|
makedepends_build=""
|
|
|
|
makedepends_host=""
|
|
|
|
makedepends="gettext libtool autoconf automake bison"
|
|
|
|
arch="all"
|
|
|
|
license="GPL2 GPL3+ LGPL2 BSD"
|
|
|
|
subpackages=""
|
|
|
|
source="http://ftp.gnu.org/gnu/binutils/binutils-$pkgver.tar.bz2
|
|
|
|
binutils-ld-fix-static-linking.patch
|
2017-11-27 20:40:38 +00:00
|
|
|
hash-style-configure-flag.patch
|
2017-06-14 17:10:21 +00:00
|
|
|
CVE-2017-7614.patch
|
2017-11-27 20:40:38 +00:00
|
|
|
gold-mips.patch
|
2017-06-14 17:10:21 +00:00
|
|
|
"
|
|
|
|
builddir="$srcdir/binutils-$pkgver"
|
|
|
|
|
|
|
|
if [ "$CHOST" != "$CTARGET" ]; then
|
|
|
|
pkgname="binutils-$CTARGET_ARCH"
|
|
|
|
subpackages=""
|
|
|
|
sonameprefix="binutils:"
|
|
|
|
fi
|
|
|
|
|
|
|
|
# secfixes:
|
|
|
|
# 2.28-r1:
|
|
|
|
# - CVE-2017-7614
|
|
|
|
|
|
|
|
build() {
|
|
|
|
_target="$(arch_to_hostspec aarch64)"
|
|
|
|
cd "$builddir"
|
|
|
|
"$builddir"/configure \
|
|
|
|
--build="$CBUILD" \
|
|
|
|
--target=$_target \
|
|
|
|
--with-lib-path=/usr/lib \
|
|
|
|
--prefix=/usr \
|
|
|
|
--with-sysroot=/usr/$_target \
|
|
|
|
--enable-ld=default \
|
|
|
|
--enable-gold=yes \
|
|
|
|
--enable-plugins \
|
|
|
|
--enable-deterministic-archives \
|
|
|
|
--disable-multilib \
|
|
|
|
--disable-werror \
|
2017-10-04 15:05:00 +00:00
|
|
|
--disable-nls
|
2017-06-14 17:10:21 +00:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "$builddir"
|
2017-10-04 15:05:00 +00:00
|
|
|
make install DESTDIR="$pkgdir"
|
2017-06-14 17:10:21 +00:00
|
|
|
|
|
|
|
# remove man, info folders
|
|
|
|
rm -rf "$pkgdir"/usr/share
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sha512sums="ede2e4e59a800260eea8c14eafbaee94e30abadafd5c419a3370f9f62213cf027d6400a1d4970b6958bd4d220e675dcd483a708107016e7abd5c99d7392ba8fd binutils-2.28.tar.bz2
|
|
|
|
ecee33b0e435aa704af1c334e560f201638ff79e199aa11ed78a72f7c9b46f85fbb227af5748e735fd681d1965fcc42ac81b0c8824e540430ce0c706c81e8b49 binutils-ld-fix-static-linking.patch
|
2017-11-27 20:40:38 +00:00
|
|
|
404a483adc8bf8112d953c53a853d21588745752687ee3ca57def539201b9e87844b23ba3c666d7c9648911cdeb55144382c3726ae3845e12b232c3f001c1bfe hash-style-configure-flag.patch
|
|
|
|
03e2329a216eaaaebc00a2b487a8ffa57657845ea3428f24a1029eabaca2103cb00f39cb4824fe6b70ce9c124e0f850c893746fcf203a6a69288d19df624c60a CVE-2017-7614.patch
|
|
|
|
f55cf2e0bf82f97583a1abe10710e4013ecf7d64f1da2ef8659a44a06d0dd8beaf58dab98a183488ea137f03e32d62efc878d95f018f836f8cec870bc448556f gold-mips.patch"
|