summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libre/xtensa-elf-binutils/PKGBUILD18
1 files changed, 15 insertions, 3 deletions
diff --git a/libre/xtensa-elf-binutils/PKGBUILD b/libre/xtensa-elf-binutils/PKGBUILD
index b7b937617..bb0239dd5 100644
--- a/libre/xtensa-elf-binutils/PKGBUILD
+++ b/libre/xtensa-elf-binutils/PKGBUILD
@@ -3,10 +3,9 @@
# Maintainer (Parabola): André Silva <emulatorman@lavabit.com>
# Contributor (Parabola): Márcio Silva <coadde@lavabit.com>
-_pkgname=binutils
pkgname=xtensa-elf-binutils
pkgver=2.23.2
-pkgrel=2
+pkgrel=2.1
pkgdesc="A set of programs to assemble and manipulate binary and object files"
arch=('i686' 'x86_64' 'mips64el')
url="http://www.gnu.org/software/binutils/"
@@ -39,12 +38,13 @@ build() {
cd ${srcdir}/binutils-build
${srcdir}/binutils-${pkgver}/configure --prefix=/usr \
- --with-lib-path=/usr/lib:/usr/local/lib \
+ --with-lib-path=/usr/lib/binutils/xtensa-elf \
--with-bugurl=https://labs.parabola.nu/ \
--enable-ld=default --enable-gold \
--enable-plugins --enable-threads \
--with-pic --enable-shared \
--disable-werror --disable-multilib \
+ --with-sysroot=/usr/$CHOST/xtensa-elf \
--program-prefix=xtensa-elf- \
--target=xtensa-elf
@@ -76,4 +76,16 @@ package() {
# Remove unwanted files
rm ${pkgdir}/usr/share/man/man1/xtensa-elf-{dlltool,nlmconv,windres,windmc}*
rm ${pkgdir}/usr/share/info/{configure,standards}.info
+
+ # Remove unnecessary files and folders
+ rm -f $pkgdir/usr/bin/ar
+ rm -f $pkgdir/usr/bin/as
+ rm -f $pkgdir/usr/bin/ld
+ rm -f $pkgdir/usr/bin/nm
+ rm -f $pkgdir/usr/bin/objdump
+ rm -f $pkgdir/usr/bin/ranlib
+ rm -f $pkgdir/usr/bin/strip
+ rm -f $pkgdir/usr/bin/objcopy
+ rm -f $pkgdir/usr/lib/libiberty.a
+ rm -rf $pkgdir/usr/share
}