86 lines
3.1 KiB
Text
86 lines
3.1 KiB
Text
# Automatically generated aport, do not edit!
|
|
# Generator: pmbootstrap aportgen binutils-armhf
|
|
# Based on: main/binutils
|
|
|
|
pkgname=binutils-armhf
|
|
pkgver=2.38
|
|
pkgrel=2
|
|
pkgdesc="Tools necessary to build programs for armhf targets"
|
|
url="https://www.gnu.org/software/binutils/"
|
|
makedepends="gettext libtool autoconf automake bison texinfo"
|
|
arch="x86_64"
|
|
license="GPL-2.0 GPL-3.0-or-later LGPL-2.0 BSD"
|
|
source="https://ftp.gnu.org/gnu/binutils/binutils-$pkgver.tar.xz
|
|
binutils-ld-fix-static-linking.patch
|
|
gold-mips.patch
|
|
ld-bfd-mips.patch
|
|
0001-Revert-PR25882-.gnu.attributes-are-not-checked-for-s.patch
|
|
binutils-mips-disable-assert.patch
|
|
binutils-ppc-fix-machine-options.patch
|
|
binutils-s390x-1.patch
|
|
binutils-s390x-2.patch
|
|
"
|
|
builddir="$srcdir/binutils-$pkgver"
|
|
|
|
if [ "$CHOST" = "$CBUILD" ] && [ "$CBUILD" = "$CTARGET" ] && [ "$CTARGET_ARCH" != "riscv64" ]; then
|
|
subpackages=""
|
|
fi
|
|
|
|
if [ "$CHOST" != "$CTARGET" ]; then
|
|
pkgname="binutils-$CTARGET_ARCH"
|
|
subpackages=""
|
|
sonameprefix="binutils:"
|
|
fi
|
|
|
|
# secfixes:
|
|
# 2.35.2-r1:
|
|
# - CVE-2021-3487
|
|
# 2.32-r0:
|
|
# - CVE-2018-19931
|
|
# - CVE-2018-19932
|
|
# - CVE-2018-20002
|
|
# - CVE-2018-20712
|
|
# 2.28-r1:
|
|
# - CVE-2017-7614
|
|
|
|
build() {
|
|
_target="$(arch_to_hostspec armhf)"
|
|
"$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
|
|
}
|
|
|
|
package() {
|
|
make install DESTDIR="$pkgdir"
|
|
|
|
# remove man, info folders
|
|
rm -rf "$pkgdir"/usr/share
|
|
|
|
# remove files that conflict with non-cross binutils
|
|
rm -rf "$pkgdir"/usr/lib/bfd-plugins
|
|
}
|
|
|
|
|
|
|
|
sha512sums="
|
|
8bf0b0d193c9c010e0518ee2b2e5a830898af206510992483b427477ed178396cd210235e85fd7bd99a96fc6d5eedbeccbd48317a10f752b7336ada8b2bb826d binutils-2.38.tar.xz
|
|
ecee33b0e435aa704af1c334e560f201638ff79e199aa11ed78a72f7c9b46f85fbb227af5748e735fd681d1965fcc42ac81b0c8824e540430ce0c706c81e8b49 binutils-ld-fix-static-linking.patch
|
|
f55cf2e0bf82f97583a1abe10710e4013ecf7d64f1da2ef8659a44a06d0dd8beaf58dab98a183488ea137f03e32d62efc878d95f018f836f8cec870bc448556f gold-mips.patch
|
|
314d2ef9071c89940aa6c8118e8a1e2f191a5d0a4bf596da1ad9cc84f884d8bc7dea8bd7b9fc3f8f1bddd3fd41c6eb017e1e804044b3bf084df1ed9e6e095e2d ld-bfd-mips.patch
|
|
70ec22bd72ef6dddecfd970613387dd4a8cdc8730dd3cbf03d5a0c3a7c4d839383167bb06dad21bf7c235329fd44b5dc4aefe762f68544f17155cf002bf1be4a 0001-Revert-PR25882-.gnu.attributes-are-not-checked-for-s.patch
|
|
609cd90d8b334eb309f586b17b9d335a08d3dbb6def7c3eb5c010028fcb681674031e5b9d853aa7a39a50304356a86afc184b85562b3f228f8197f4d29395c8f binutils-mips-disable-assert.patch
|
|
27ea91e0e406e2ed464fd692cf92a07e338781789f2d968c8b95d9d5545985056a6f7f500df3952e5ab42165db28b741aa33d6b717e880b11a2e41fe406b13c4 binutils-ppc-fix-machine-options.patch
|
|
a9efe2689624865f0ff33d4776a5bd295bcad6484bdd38d0ca490fea43691c4933ab33d17478851998eef12922dbf83d6c3225bb1f8faf92a1367d086390f7d3 binutils-s390x-1.patch
|
|
0e291df80ad279005265634014d0935d2c115a5ed708d25407094b7ad4ddf267d1fb7fcbcb2d9ad73bd305b4e3974628b820bd1f249f56c095e4896872434cc9 binutils-s390x-2.patch
|
|
"
|