aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXi Ruoyao <xry111@mengyan1223.wang>2021-07-28 17:04:08 +0800
committerXi Ruoyao <xry111@mengyan1223.wang>2021-07-28 18:46:32 +0800
commit46e44863c1b86f7520e08c565a36c9b8255cc200 (patch)
tree2a07ba91ac546f8f545fa606c63ecf4c6b43b5bb
parent08f72423ce26a60982fb06fb4b34f800d2c8a3ad (diff)
don't use host tool for stripping
-rw-r--r--chapter07/stripping.xml6
1 files changed, 3 insertions, 3 deletions
diff --git a/chapter07/stripping.xml b/chapter07/stripping.xml
index 22a5a0804..24ac67e4b 100644
--- a/chapter07/stripping.xml
+++ b/chapter07/stripping.xml
@@ -87,9 +87,9 @@ umount $LFS/{sys,proc,run}</userinput></screen>
symbols.</para>
<para>Strip off debugging symbols from binaries:</para>
-<screen role="nodump"><userinput>strip --strip-unneeded $LFS/usr/lib/*
-strip --strip-unneeded $LFS/usr/{,s}bin/*
-strip --strip-unneeded $LFS/tools/bin/*</userinput></screen>
+<screen role="nodump"><userinput>$LFS_TGT-strip --strip-unneeded $LFS/usr/lib/*
+$LFS_TGT-strip --strip-unneeded $LFS/usr/{,s}bin/*
+$LFS_TGT-strip --strip-unneeded $LFS/tools/bin/*</userinput></screen>
<para>These commands will skip a number of files reporting that it does not
recognize their file format. Most of these are scripts instead of binaries.