On 01/28/2013 10:54 AM, Randy McMurchy wrote: > Fernando de Oliveira wrote these words on 01/28/13 10:41 CST: >> Forwarded from the "BLFS Book Maintenance List" list. >> >> Sorry for top posting. >> >> Thanks, Randy. > > > Though essentially the same thing Bruce said, here is what I do at the > completion of LFS. Simply modify the log file locations and include any other > directories you wish and you may like the results: > > > du -sch {,usr/}{sbin,bin} \ > >home/rml/build/Logs/LFS_System/Post-Installation/strip-bin.log 2>&1 > echo \ > >>home/rml/build/Logs/LFS_System/Post-Installation/strip-bin.log > find sbin bin usr/sbin usr/bin -type f -exec strip --strip-all > --preserve-dates {} \; \ > >>home/rml/build/Logs/LFS_System/Post-Installation/strip-bin.log 2>&1 > echo \ > >>home/rml/build/Logs/LFS_System/Post-Installation/strip-bin.log > du -sch {,usr/}{sbin,bin} \ > >>home/rml/build/Logs/LFS_System/Post-Installation/strip-bin.log 2>&1 > cat home/rml/build/Logs/LFS_System/Post-Installation/strip-bin.log | \ > grep -v "File format not recognized" > > > du -sch {,usr/}lib \ > >home/rml/build/Logs/LFS_System/Post-Installation/strip-lib.log 2>&1 > echo \ > >>home/rml/build/Logs/LFS_System/Post-Installation/strip-lib.log > find lib usr/lib -type f -exec strip --strip-debug --preserve-dates {} \; \ > >>home/rml/build/Logs/LFS_System/Post-Installation/strip-lib.log 2>&1 > echo \ > >>home/rml/build/Logs/LFS_System/Post-Installation/strip-lib.log > du -sch {,usr/}lib \ > >>home/rml/build/Logs/LFS_System/Post-Installation/strip-lib.log 2>&1 > cat home/rml/build/Logs/LFS_System/Post-Installation/strip-lib.log | \ > grep -v "File format not recognized" >
Just FYI, I ran across this comment in Arch's PKGBUILD for glibc (which I've not verified, and blindly followed): # Do not strip the following files for improved debugging support # ("improved" as in not breaking gdb and valgrind...): # ld-${pkgver}.so # libc-${pkgver}.so # libpthread-${pkgver}.so # libthread_db-1.0.so Now, as to how useful that actually is in practice, I can't honestly see a need being that everything else is already lacking... Anyway, --strip-debug for static libs, --strip-unneeded for shared libs, and --strip-all for executable files is what is default for makepkg (and coincidentally is what I have stuck with for a while). -- DJ -- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page