浏览代码

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

Gerard Beekmans 24 年之前
父节点
当前提交
640c87f155
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      chapter09/theend.xml

+ 2 - 2
chapter09/theend.xml

@@ -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>