Randy McMurchy wrote:
> Bruce Dubbs wrote:

>> So a program like tar that may be looking for zlib.so can find it if 
>> /usr is a separate partition and not mounted.
> 
> A program like tar will *never* look for zlib.so. It will look for
> what the dynamic linker says to look for in its cache. In this case:

Yes, I agree that a program will look for the file that the dynamic 
linker says to look for.

> r...@rmlinux: /home/randy > ldconfig -v |grep libz
>          libz.so.1 -> libz.so.1.2.3

If libz is needed by a program in /bin, the dynamic linker will not find 
it if /usr is not mounted.

> .so files and .a files do not belong in /lib. They are only used at
> compile time. And one shouldn't be compiling programs if /usr is
> not mounted.

.a files are only used at build time and I agree with that part.  .so 
files are definitely used at run time. I *know* that libc.so.6 needs to 
be in /lib.  I do have rpm installed in /bin and that has:

libz.so.1 => /lib/libz.so.1 (0x00007f1355a45000)

> The .so file belongs in /usr/lib.

My thinking that tar needed libz was wrong.  From a review, none of the 
lfs programs installed in /bin need it, but bzip2 (and rpm) does need 
libbz2.so.1.0, and that needs to be in /lib.

   -- Bruce



-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to