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-08-22 21:46:33 +00:00
|
|
|
pkgver=2.31.1
|
2019-01-03 08:47:29 +00:00
|
|
|
pkgrel=2
|
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-12-22 08:26:57 +00:00
|
|
|
arch="armv7 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=""
|
2018-11-17 19:44:22 +00:00
|
|
|
source="https://ftp.gnu.org/gnu/binutils/binutils-$pkgver.tar.bz2
|
2018-09-26 07:34:50 +00:00
|
|
|
x86-Add-a-GNU_PROPERTY_X86_ISA_1_USED-note-if-needed.patch
|
|
|
|
x86-Properly-merge-GNU_PROPERTY_X86_ISA_1_USED.patch
|
|
|
|
x86-Properly-add-X86_ISA_1_NEEDED-property.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
|
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() {
|
2018-12-31 07:53:12 +00:00
|
|
|
_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 \
|
|
|
|
--enable-deterministic-archives \
|
|
|
|
--disable-multilib \
|
|
|
|
--disable-werror \
|
|
|
|
--disable-nls
|
|
|
|
make
|
2017-05-26 20:26:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2018-12-31 07:53:12 +00:00
|
|
|
cd "$builddir"
|
|
|
|
make install DESTDIR="$pkgdir"
|
2017-05-26 20:26:25 +00:00
|
|
|
|
2018-12-31 07:53:12 +00:00
|
|
|
# remove man, info folders
|
|
|
|
rm -rf "$pkgdir"/usr/share
|
2017-05-26 20:26:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-08-22 21:46:33 +00:00
|
|
|
sha512sums="b42954e6f49a0adcd2676bdd77dfb59bfc25cec8184b007521d1e2b1d5d0593b58639e3d9448d5a40fe024c3cea386a37743627d6bb16d502f52a4a32b9573bd binutils-2.31.1.tar.bz2
|
2018-09-26 07:34:50 +00:00
|
|
|
d95fd77e1c2c4670a2a11979d6811b358ba0f067b917b33d241eca20cfe66553f6a6fccc5ec26d8d29045e487cb74389fbf86426f80cf81df95608835a566cfc x86-Add-a-GNU_PROPERTY_X86_ISA_1_USED-note-if-needed.patch
|
|
|
|
ce5d3c935057d624c1ce75722e7b5e4583812d46797edce8c381a94b2643f44f7bd0165e7e9b8e358955f4d979074ee487598efbf24389a4013681f99ff7c595 x86-Properly-merge-GNU_PROPERTY_X86_ISA_1_USED.patch
|
|
|
|
1878bed194529afb2430af21ba9712d6819c5fdfdc5c8db652175bf86d0a0c710ac2bd3ec728bf874887301bd187d91bf60a374c47850c7bd2eafbf6653d74d8 x86-Properly-add-X86_ISA_1_NEEDED-property.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"
|