Try those instructions with the last line replaced by "| grep -v '.so'"
(that is, print all the found filenames, except those containing .so):
----
find /{,usr/}{bin,lib,sbin} \
-type f \( -name \*.so* -a ! -name \*dbg \) | grep -v '\.so'
(empty output)
----
The reason is that the default predicate in find is -a, so the above is
equivalent to:
find /{,usr/}{bin,lib,sbin} \
-type f -a -name \*.so* -a ! -name \*dbg
I'd suggest (but I am sure there are better alternatives)
-type f \( -name \*.so* -a ! -name \*dbg -o ! -name \*.so*\)
or separate bin,sbin (where we can "strip --stripall") from lib, where
we should just "strip --unneded" *.so* files, or "strip --debug" *.a
files (as in lfs)
Pierre
--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page