2018-12-12 17:14:55 +00:00
|
|
|
# Automatically generated aport, do not edit!
|
|
|
|
# Generator: pmbootstrap aportgen binutils-armv7
|
|
|
|
# Based on: main/binutils
|
|
|
|
|
|
|
|
pkgname="binutils-armv7"
|
2019-10-13 13:18:51 +00:00
|
|
|
pkgver=2.33.1
|
2019-09-16 20:51:35 +00:00
|
|
|
pkgrel=0
|
2018-12-12 17:14:55 +00:00
|
|
|
pkgdesc="Tools necessary to build programs for armv7 targets"
|
|
|
|
url="https://www.gnu.org/software/binutils/"
|
|
|
|
makedepends_build=""
|
|
|
|
makedepends_host=""
|
|
|
|
makedepends="gettext libtool autoconf automake bison"
|
|
|
|
arch="armhf aarch64 x86_64 x86"
|
|
|
|
license="GPL-2.0 GPL-3.0-or-later LGPL-2.0 BSD"
|
|
|
|
subpackages=""
|
|
|
|
source="https://ftp.gnu.org/gnu/binutils/binutils-$pkgver.tar.bz2
|
|
|
|
binutils-ld-fix-static-linking.patch
|
|
|
|
gold-mips.patch
|
|
|
|
"
|
|
|
|
builddir="$srcdir/binutils-$pkgver"
|
|
|
|
|
|
|
|
if [ "$CHOST" != "$CTARGET" ]; then
|
|
|
|
pkgname="binutils-$CTARGET_ARCH"
|
|
|
|
subpackages=""
|
|
|
|
sonameprefix="binutils:"
|
|
|
|
fi
|
|
|
|
|
|
|
|
# secfixes:
|
2019-09-16 20:51:35 +00:00
|
|
|
# 2.32-r0:
|
|
|
|
# - CVE-2018-19931
|
|
|
|
# - CVE-2018-19932
|
|
|
|
# - CVE-2018-20002
|
|
|
|
# - CVE-2018-20712
|
2018-12-12 17:14:55 +00:00
|
|
|
# 2.28-r1:
|
|
|
|
# - CVE-2017-7614
|
|
|
|
|
|
|
|
build() {
|
2018-12-31 07:53:12 +00:00
|
|
|
_target="$(arch_to_hostspec armv7)"
|
|
|
|
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 \
|
|
|
|
--disable-nls
|
|
|
|
make
|
2018-12-12 17:14:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2018-12-31 07:53:12 +00:00
|
|
|
cd "$builddir"
|
|
|
|
make install DESTDIR="$pkgdir"
|
2018-12-12 17:14:55 +00:00
|
|
|
|
2018-12-31 07:53:12 +00:00
|
|
|
# remove man, info folders
|
|
|
|
rm -rf "$pkgdir"/usr/share
|
2018-12-12 17:14:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-10-13 13:18:51 +00:00
|
|
|
sha512sums="bfdbb49a9002dd9bae8ab3c9347e05bd968ad97837c3e71b046eb8721c45a73db01f880dbdf0911bb37a97be37d6cc3b26d0855964a011f593ccbf1d08641c87 binutils-2.33.1.tar.bz2
|
2018-12-12 17:14:55 +00:00
|
|
|
ecee33b0e435aa704af1c334e560f201638ff79e199aa11ed78a72f7c9b46f85fbb227af5748e735fd681d1965fcc42ac81b0c8824e540430ce0c706c81e8b49 binutils-ld-fix-static-linking.patch
|
|
|
|
f55cf2e0bf82f97583a1abe10710e4013ecf7d64f1da2ef8659a44a06d0dd8beaf58dab98a183488ea137f03e32d62efc878d95f018f836f8cec870bc448556f gold-mips.patch"
|