Ignore:
Timestamp:
05/12/2021 05:26:46 AM (3 years ago)
Author:
Thomas Trepl (Moody) <thomas@…>
Branches:
ml-11.0, multilib
Children:
3de7f52
Parents:
0e9fb93 (diff), d7a9421 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge pre-LFS-11-0 changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter08/strippingagain.xml

    r0e9fb93 rdf462a9  
    3434
    3535<!--<screen><userinput>save_lib="ld-2.25.so libc-2.25.so libpthread-2.25.so libthread_db-1.0.so"-->
    36 <screen><userinput>save_lib="ld-&glibc-version;.so libc-&glibc-version;.so libpthread-&glibc-version;.so libthread_db-&libthread_db-version;.so"
    37 
    38 cd /lib
    39 for LIB in $save_lib; do
    40     objcopy --only-keep-debug $LIB $LIB.dbg
    41     strip --strip-unneeded $LIB
    42     objcopy --add-gnu-debuglink=$LIB.dbg $LIB
    43 done</userinput>
    44 <userinput arch="ml_32,ml_all">
    45 cd &lib-m32;
    46 for LIB in $save_lib; do
    47     objcopy --only-keep-debug $LIB $LIB.dbg
    48     strip --strip-unneeded $LIB
    49     objcopy --add-gnu-debuglink=$LIB.dbg $LIB
    50 done</userinput>
    51 <userinput arch="ml_x32,ml_all">
    52 cd &lib-mx32;
    53 for LIB in $save_lib; do
    54     objcopy --only-keep-debug $LIB $LIB.dbg
    55     strip --strip-unneeded $LIB
    56     objcopy --add-gnu-debuglink=$LIB.dbg $LIB
    57 done</userinput><userinput>
    58 
    59 save_usrlib="libquadmath.so.&libquadmath-version; libstdc++.so.&libstdcpp-version;
     36<screen><userinput>save_usrlib="ld-&glibc-version;.so libc-&glibc-version;.so libpthread-&glibc-version;.so libthread_db-&libthread_db-version;.so
     37             libquadmath.so.&libquadmath-version; libstdc++.so.&libstdcpp-version;
    6038             libitm.so.&libitm-version; libatomic.so.&libatomic-version;" <!-- libcilkrts.so.&libcilkrts-version;-->
    6139
     
    8159done</userinput><userinput>
    8260
    83 unset LIB save_lib save_usrlib</userinput></screen>
     61unset LIB save_usrlib</userinput></screen>
    8462
    8563<!--  <para>Before performing the stripping, take special care to ensure that
     
    9876   -exec strip --strip-debug {} ';'</userinput><userinput>
    9977
    100 find /lib /usr/lib -type f -name \*.so* ! -name \*dbg \
     78find /usr/lib -type f -name \*.so* ! -name \*dbg \
    10179   -exec strip --strip-unneeded {} ';'</userinput>
    102 <userinput arch="ml_32,ml_all">find &lib-m32; &usr-lib-m32; -type f -name \*.so* ! -name \*dbg \
     80<userinput arch="ml_32,ml_all">find &usr-lib-m32; -type f -name \*.so* ! -name \*dbg \
    10381   -exec strip --strip-unneeded {} ';'</userinput>
    104 <userinput arch="ml_x32,ml_all">find &lib-mx32; &usr-lib-mx32; -type f -name \*.so* ! -name \*dbg \
     82<userinput arch="ml_x32,ml_all">find &usr-lib-mx32; -type f -name \*.so* ! -name \*dbg \
    10583   -exec strip --strip-unneeded {} ';'</userinput><userinput>
    10684
    107 find /{bin,sbin} /usr/{bin,sbin,libexec} -type f \
     85find /usr/{bin,sbin,libexec} -type f \
    10886    -exec strip --strip-all {} ';'</userinput></screen>
    10987
Note: See TracChangeset for help on using the changeset viewer.