2017-05-26 20:26:25 +00:00
|
|
|
# Automatically generated aport, do not edit!
|
|
|
|
# Generator: pmbootstrap aportgen binutils-armhf
|
|
|
|
# Based on: main/binutils
|
|
|
|
|
|
|
|
|
|
|
|
pkgname="binutils-armhf"
|
2018-05-03 19:11:10 +00:00
|
|
|
pkgver=2.30
|
2018-06-13 00:07:07 +00:00
|
|
|
pkgrel=5
|
2017-05-26 20:26:25 +00:00
|
|
|
pkgdesc="Tools necessary to build programs for armhf targets"
|
2017-11-27 20:40:38 +00:00
|
|
|
url="https://www.gnu.org/software/binutils/"
|
2017-05-26 20:26:25 +00:00
|
|
|
depends=""
|
|
|
|
makedepends_build=""
|
|
|
|
makedepends_host=""
|
|
|
|
makedepends="gettext libtool autoconf automake bison"
|
2018-01-23 00:26:33 +00:00
|
|
|
arch="aarch64 x86_64 x86"
|
2018-01-20 18:17:23 +00:00
|
|
|
license="GPL-2.0 GPL-3.0-or-later LGPL-2.0 BSD"
|
2017-05-26 20:26:25 +00:00
|
|
|
subpackages=""
|
|
|
|
source="http://ftp.gnu.org/gnu/binutils/binutils-$pkgver.tar.bz2
|
2018-05-20 18:39:56 +00:00
|
|
|
fix-powerpc64-out-ot-line-save-restore.patch
|
2017-05-26 20:26:25 +00:00
|
|
|
binutils-ld-fix-static-linking.patch
|
2017-11-27 20:40:38 +00:00
|
|
|
gold-mips.patch
|
2018-06-07 06:00:36 +00:00
|
|
|
allow-R_AARCH64_ABS16-and.patch
|
2017-05-26 20:26:25 +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 armhf)"
|
|
|
|
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 \
|
2017-06-06 20:21:59 +00:00
|
|
|
--enable-deterministic-archives \
|
2017-05-26 20:26:25 +00:00
|
|
|
--disable-multilib \
|
|
|
|
--disable-werror \
|
2017-10-04 15:05:00 +00:00
|
|
|
--disable-nls
|
2017-05-26 20:26:25 +00:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "$builddir"
|
2017-10-04 15:05:00 +00:00
|
|
|
make install DESTDIR="$pkgdir"
|
2017-05-26 20:26:25 +00:00
|
|
|
|
|
|
|
# remove man, info folders
|
|
|
|
rm -rf "$pkgdir"/usr/share
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-05-03 19:11:10 +00:00
|
|
|
sha512sums="c3ce91aa20f058ec589bf18c722bf651331b394db6378900cc813cc0eea3a331a96584d5ae090630b627369510397dccc9edfcd43d4aeefc99579f277a05c72c binutils-2.30.tar.bz2
|
2018-06-07 06:00:36 +00:00
|
|
|
5d8ebbcae2c8d3b2075fb06ace3c52ff6bb0ec96989873fbe302019a15d91f6e85e9e38a6d8eb09bd9aefa7723665108a3a62a6fc1cafb07b1eba2a96d19c9e3 allow-R_AARCH64_ABS16-and.patch
|
2018-05-20 18:39:56 +00:00
|
|
|
29791af5a09387d16fc4272dc7a10f71aed5a13187187af533bbe365506d6e6b581030d3f9bb4b7d8e300fb29b8b37b5f48027d86e33a8395b1a6d2dfb2d895a fix-powerpc64-out-ot-line-save-restore.patch
|
2017-05-26 20:26:25 +00:00
|
|
|
ecee33b0e435aa704af1c334e560f201638ff79e199aa11ed78a72f7c9b46f85fbb227af5748e735fd681d1965fcc42ac81b0c8824e540430ce0c706c81e8b49 binutils-ld-fix-static-linking.patch
|
2017-11-27 20:40:38 +00:00
|
|
|
f55cf2e0bf82f97583a1abe10710e4013ecf7d64f1da2ef8659a44a06d0dd8beaf58dab98a183488ea137f03e32d62efc878d95f018f836f8cec870bc448556f gold-mips.patch"
|