From 536a500f7e4f959da4ecd5a008ff554c0799f243 Mon Sep 17 00:00:00 2001 From: Daniel Date: Sun, 8 Sep 2019 21:29:11 +0200 Subject: [PATCH] exclude striping dir for sysroot --- danio_gcc.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/danio_gcc.sh b/danio_gcc.sh index 6424cc8..4527283 100755 --- a/danio_gcc.sh +++ b/danio_gcc.sh @@ -114,7 +114,7 @@ runit() } strip_n_pack() { - find ${PREFIX} -type f | xargs file | grep "ELF" | cut -f 1 -d ":" | xargs strip -S --strip-unneeded #for host + find ${PREFIX} -type f -path ${PREFIX}/${TARGET} -prune -o -print | xargs file | grep "ELF" | cut -f 1 -d ":" | xargs strip -S --strip-unneeded #for host find ${PREFIX}/${TARGET} -type f -name "*.a" | xargs ${TARGET}-strip -S --strip-unneeded #for sysroot find ${PREFIX}/${TARGET} -type f -name "*.a" | xargs ${TARGET}-ranlib #for sysroot find ${PREFIX}/${TARGET} -type f | xargs file | grep "ELF" | cut -f 1 -d ":" | xargs ${TARGET}-strip -S --strip-unneeded #for sysroot