[lfs-book] r11226 - in trunk/BOOK: . chapter01 chapter06

akhiezer lfs65 at cruziero.com
Sun Apr 23 05:00:09 PDT 2017


> From: bdubbs at higgs.linuxfromscratch.org
> Date: Sun, 23 Apr 2017 03:28:50 -0000
>
> Author: bdubbs
> Date: Sat Apr 22 20:28:50 2017
> New Revision: 11226
>
> Log:
> Add instructions to save debugging information for selected libraries when
> stripping at the end of Chapter 6.
[...]
> +mkdir -p /var/dbg/lib /var/dbg/usr/lib


Instead of creating /var/dbg , why not use the already-existing /var/lib
; and use a named per-'application' dir under there, in usual way -
e.g. :

  /var/lib/lfs	# the named per-application subdir of /var/lib  .

; and then use e.g.:

  /var/lib/lfs/unstripped-libs-for-debuggers	# clumsy-named dir for clarity.
or
  /var/lib/lfs/unstrppd4dbg
or
  /var/lib/lfs/dbg
etc.

 
> +
> +for lib in $save_libs
> +do
> +    find /usr/lib -name ${lib}*so* -type f -exec cp {} /var/dbg/usr/lib \;
> +    find /lib     -name ${lib}*so* -type f -exec cp {} /var/dbg/lib     \;
> +done</userinput></screen>
[...]
> +<screen><userinput>cp -av /var/dbg/lib/* /lib
> +cp -av /var/dbg/usr/lib/* /usr/lib</userinput></screen>
[...]
>



akh





--


More information about the lfs-book mailing list