diff options
author | Xi Ruoyao <xry111@mengyan1223.wang> | 2021-08-03 23:58:46 +0800 |
---|---|---|
committer | Xi Ruoyao <xry111@mengyan1223.wang> | 2021-08-04 00:04:15 +0800 |
commit | 6094daeb7aa83eefa865872182eed1adfa410c73 (patch) | |
tree | 32ed254395a88844de1a03fd4c6819f43c56a07d /chapter08 | |
parent | 2cc15c335fc651e3ee69464ab0ef89af408dab8f (diff) |
strip: restore versions in online_usrlib and save_usrlib
Without them, for example:
cp /usr/lib/libbfd.so /tmp/libbfd.so
# now /tmp/libbfd.so is a hardcopy of /usr/lib/libbfd-2.37.so
strip --strip-unneeded /tmp/libbfd.so
install -vm755 /tmp/libbfd.so /usr/lib/libbfd.so
# now /usr/lib/libbfd.so is *not* a symlink, but a real file
We don't want this to happen.
libdl and libpthread removed: they are now dummy libs and is not used by
anything built in LFS/BLFS.
Diffstat (limited to 'chapter08')
-rw-r--r-- | chapter08/strippingagain.xml | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/chapter08/strippingagain.xml b/chapter08/strippingagain.xml index 825cd20e2..7692f6ce9 100644 --- a/chapter08/strippingagain.xml +++ b/chapter08/strippingagain.xml @@ -43,12 +43,11 @@ <!-- also of interest are libgfortan, libgo, libgomp, and libobjc from GCC --> <!--<screen><userinput>save_lib="ld-2.25.so libc-2.25.so libpthread-2.25.so libthread_db-1.0.so"--> - <screen><userinput>save_usrlib="ld-linux-x86-64.so.2 +<screen><userinput>save_usrlib="ld-linux-x86-64.so.2 libc.so.6 - libpthread.so.6 - libthread_db.so + libthread_db.so.1 libquadmath.so.&libquadmath-version; - libstdc++.so.6 + libstdc++.so.&libstdcpp-version; libitm.so.&libitm-version; libatomic.so.&libatomic-version;" @@ -64,13 +63,12 @@ for LIB in $save_usrlib; do done online_usrbin="bash find strip" -online_usrlib="libbfd.so - libdl.so.2 - libhistory.so - libncursesw.so - libm.so.6 - libreadline.so - libz.so +online_usrlib="libbfd-&binutils-version;.so + libhistory.so.&readline-version; + libncursesw.so.&ncurses-version; + libm.so.6 + libreadline.so.&readline-version; + libz.so.&zlib-version; $(cd /usr/lib; find libnss*.so* -type f)" for BIN in $online_usrbin; do |