Randy McMurchy wrote:
> Bruce Dubbs wrote:
>> Bryan Kadzban wrote:
>>
>>> But we don't put *any* .so (or .a) files into /lib, because the only
>>> reason for /lib is to hold libraries that are required before /usr may
>>> be mounted (i.e. early bootscripts). And when you're compiling -- which
>>> is the only time .so or .a files are used -- /usr had better be mounted.
>>> :-)
>> Actually .so files are used any time a dynamically linked executable needs
>> them,
>> not just when 'compiling'. But I think you know that.
>
> Yeah, but dynamically linked executables never need them (unless of course
> the package only provides a .so or .a file. Typically, what is needed for
> dynamically linked packages are files such as libfile.so.1. That is why we
> leave libfile.so.1 and libfile.so.1.37 in /lib.
>
> So, actually, .so and .a files are really only needed at compile time for
> other packages. :-)
OK, I was throwing the .so and the .so.1 files together. Since they are
generally only symlinks, it makes sense to keep them together.
>> Actually, I think we may have several unnecessary files in /lib. I'm not
>> sure
>> why libhistory
>
> Probably for the bash shell.
Right.
>> , libnss*,
>
> These are Glibc files used for resolving names, likely needed in single user
> mode.
Ok. I just noticed an interesting thing about these files:
-rwxr-xr-x 1 root root 27084 Aug 16 17:09 libnss_dns-2.10.1.so
lrwxrwxrwx 1 root root 20 Aug 16 12:53 libnss_dns.so.2 ->
libnss_dns-2.10.1.so
Although they were installed as a part of the same build, the timestamps are
considerably different. It's true for a very old LFS build too.
>> libpcre,
>
> Probably bash again.
No. Looking at my newer build, the following are installed after the initial
LFS build:
lrwxrwxrwx 1 root root 12 Aug 30 13:51 X11 -> /etc/X11/mwm
From lesstif. Probably should be fixed in BLFS.
-rwxr-xr-x 1 root root 189575 Aug 30 15:43 libpcre.so.0.0.1
From pcre and documented in BLFS to be for grep.
-- Bruce
--
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page