summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarks2021-03-06 10:49:31 +0100
committerDarks2021-03-06 10:49:31 +0100
commit5d1bd68aa68f1b4f650ada1b49d7cb6b07a8d612 (patch)
tree9648c74e9d8271924c24fdb5f95ae3eb8d2600c3
parentc95264d5c591342047f4569344afb796adde3afe (diff)
downloadaur-5d1bd68aa68f1b4f650ada1b49d7cb6b07a8d612.tar.gz
Fix known issue with binutils
See https://bugs.archlinux.org/task/69682
-rw-r--r--.SRCINFO5
-rw-r--r--PKGBUILD14
2 files changed, 12 insertions, 7 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 2fbf86b7036..a8d9421b1ab 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,13 +1,14 @@
pkgbase = sh-elf-binutils-casio
pkgdesc = GNU binary utilities for the Casio calculators SuperH processors.
pkgver = 2.36
- pkgrel = 1
+ pkgrel = 2
url = https://www.gnu.org/software/binutils/
arch = i686
arch = x86_64
license = GPL
- depends = zlib
+ depends = binutils
depends = flex
+ depends = zlib
options = !libtool
options = !buildflags
source = https://ftp.gnu.org/gnu/binutils/binutils-2.36.tar.bz2
diff --git a/PKGBUILD b/PKGBUILD
index a478a33fcc6..40f4b69639e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,13 +3,13 @@
_target=sh-elf
pkgname=${_target}-binutils-casio
pkgver=2.36
-pkgrel=1
+pkgrel=2
pkgdesc="GNU binary utilities for the Casio calculators SuperH processors."
arch=(i686 x86_64)
options=('!libtool' '!buildflags')
url='https://www.gnu.org/software/binutils/'
license=(GPL)
-depends=('zlib' 'flex')
+depends=('binutils' 'flex' 'zlib')
source=(https://ftp.gnu.org/gnu/binutils/binutils-${pkgver}.tar.bz2)
sha256sums=('209ef690dc7ac28ca592daf7e87d6289222a61fb96104dd5d5e016133ed38e8d')
@@ -34,8 +34,7 @@ build() {
--program-prefix=${_target}- \
--disable-nls \
--enable-libssp \
- --enable-lto \
- --disable-werror
+ --enable-lto
make configure-host
make
@@ -44,8 +43,13 @@ build() {
package() {
cd "${srcdir}/binutils-${pkgver}/binutils-build"
echo "Install on ${pkgdir}"
- make DESTDIR="${pkgdir}" install
+ make DESTDIR="${pkgdir}" install-strip
# Remove info documents that conflicts with host version
rm -rf "${pkgdir}/usr/share/info"
+
+ # Remove libraries that conflict with host version
+ rm "$pkgdir"/usr/lib/bfd-plugins/libdep.so
+ rmdir "$pkgdir"/usr/lib/bfd-plugins
+ rmdir "$pkgdir"/usr/lib
}