Changed --strip-unneeded to --strip-debug

According to a report --strip-unneeded isn't as safe on libraries as we
originally thought it to be. Apparently it will cause static link
failures when static libs are stripped that way. Dynamic libs may have
some unexpected problems too.

So we'll just go back on the safe side and only use --strip-debug


git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@637 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
Gerard Beekmans 2001-05-16 23:47:43 +00:00
parent 016a86b50b
commit 640c87f155

View File

@ -8,7 +8,7 @@ with your new shiny custom built Linux system.
</para>
<para>
Now would be a good time to strip all debug and compiler symbols from
Now would be a good time to strip all debug symbols from
the binaries on your LFS system. If you are not a programmer and don't plan
on debugging your software, then you will be happy to know that you can
reclaim a few tens of megs by removing debug symbols. This process causes
@ -18,7 +18,7 @@ remove the symbols by executing the following command:
</para>
<blockquote><literallayout>
<userinput>find / -type f -exec strip --strip-unneeded '{}' ';'
<userinput>find / -type f -exec strip --strip-debug '{}' ';'
</userinput>
</literallayout></blockquote>