Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-g2.git;a=commitdiff;h=35fe5086859a8628a81dbc4611e3477aacc2bc29
commit 35fe5086859a8628a81dbc4611e3477aacc2bc29 Author: crazy <cr...@frugalware.org> Date: Sun Oct 16 14:05:22 2016 +0200 makepkg - change strip_pkg * strip cross compiled packaged too on 64bit only ofc * change to strip -s .. if one need a lib with fulll symbols 'nostrip' option is the way diff --git a/scripts/makepkg b/scripts/makepkg index c529358..91852f2 100755 --- a/scripts/makepkg +++ b/scripts/makepkg @@ -586,14 +586,30 @@ strip_pkg() subpkg="subpackage " fi if [ ! "`check_option NOSTRIP`" -a "$NOSTRIP" = "0" ]; then - msg "Stripping debugging symbols from libraries from $subpkg$1..." + msg "Stripping symbols from libraries from $subpkg$1..." find $dir/{,usr,usr/local,opt/*}/lib -type f -not -name "*.dll" -not -name "*.exe" \ - -exec /usr/bin/strip --strip-debug '{}' \; 2>&1 \ + -exec /usr/bin/strip -s '{}' \; 2>&1 \ | grep -v "No such file" | grep -v "format not recognized" msg "Stripping symbols from binaries from $subpkg$p..." find $dir/{,usr,usr/local,opt/*}/{bin,sbin} -type f -not -name "*.dll" -not -name "*.exe" \ - -exec /usr/bin/strip '{}' \; 2>&1 \ + -exec /usr/bin/strip -s '{}' \; 2>&1 \ | grep -v "No such file" | grep -v "format not recognized" + + if [ "$CARCH" == "x86_64" ]; then + ##until we remove 3bit .. + if [ -d $dir/usr/lib32 ]; then + msg "Stripping symbols from 32bit libraries from $subpkg$1..." + find $dir/usr/lib32 -type f -not -name "*.dll" -not -name "*.exe" \ + -exec /usr/bin/strip -s '{}' \; 2>&1 \ + | grep -v "No such file" | grep -v "format not recognized" + fi + if [ -d $dir/usr/i686-frugalware-linux ]; then + msg "Stripping symbols from 32bit binaries from $subpkg$p..." + find $dir/usr/i686-frugalware-linux/{bin,sbin} -type f -not -name "*.dll" -not -name "*.exe" \ + -exec /usr/bin/strip -s '{}' \; 2>&1 \ + | grep -v "No such file" | grep -v "format not recognized" + fi + fi fi } _______________________________________________ Frugalware-git mailing list Frugalware-git@frugalware.org http://frugalware.org/mailman/listinfo/frugalware-git