[arch-commits] Commit in arm-none-eabi-gcc/trunk (PKGBUILD)

Anatol Pomozov anatolik at archlinux.org
Thu Nov 6 22:24:58 UTC 2014


    Date: Thursday, November 6, 2014 @ 23:24:57
  Author: anatolik
Revision: 122125

upgpkg: arm-none-eabi-gcc 4.9.2-3

Use correct strip options for target files

Modified:
  arm-none-eabi-gcc/trunk/PKGBUILD

----------+
 PKGBUILD |   10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-11-06 21:21:03 UTC (rev 122124)
+++ PKGBUILD	2014-11-06 22:24:57 UTC (rev 122125)
@@ -6,7 +6,7 @@
 pkgver=4.9.2
 _islver=0.12.2
 _cloogver=0.18.1
-pkgrel=2
+pkgrel=3
 #_snapshot=4.9-20140903
 pkgdesc='The GNU Compiler Collection - cross compiler for ARM EABI (bare-metal) target'
 arch=(i686 x86_64)
@@ -14,7 +14,7 @@
 license=(GPL LGPL FDL)
 depends=($_target-binutils $_target-newlib  zlib libmpc)
 makedepends=(gmp mpfr)
-options=(!emptydirs staticlibs)
+options=(!emptydirs !strip staticlibs)
 source=(ftp://gcc.gnu.org/pub/gcc/releases/gcc-$pkgver/gcc-$pkgver.tar.bz2
         #ftp://gcc.gnu.org/pub/gcc/snapshots/$_snapshot/gcc-$_snapshot.tar.bz2
         http://isl.gforge.inria.fr/isl-$_islver.tar.bz2
@@ -98,8 +98,12 @@
 
   make DESTDIR="$pkgdir" install -j1
 
-  find "$pkgdir"/usr/$_target/lib \( -name \*.a -or -name \*.o \) -exec $_target-objcopy -R .comment -R .note -R .debug_info -R .debug_aranges -R .debug_pubnames -R .debug_pubtypes -R .debug_abbrev -R .debug_line -R .debug_str -R .debug_ranges -R .debug_loc '{}' \;
+  # strip target binaries
+  find "$pkgdir"/usr/lib/gcc/$_target/ "$pkgdir"/usr/$_target/lib -type f -and \( -name \*.a -or -name \*.o \) -exec $_target-objcopy -R .comment -R .note -R .debug_info -R .debug_aranges -R .debug_pubnames -R .debug_pubtypes -R .debug_abbrev -R .debug_line -R .debug_str -R .debug_ranges -R .debug_loc '{}' \;
 
+  # strip host binaries
+  find "$pkgdir"/usr/bin/ "$pkgdir"/usr/lib/gcc/$_target/ -type f -and \( -executable \) -exec strip '{}' \;
+
   # Remove files that conflict with host gcc package
   rm -r "$pkgdir"/usr/share/man/man7
   rm -r "$pkgdir"/usr/share/info



More information about the arch-commits mailing list