Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Apr 2000 15:51:16 -0400 (EDT)
From:      John Baldwin <jhb@FreeBSD.org>
To:        Kresimir Kumericki <kkumer@phy.hr>
Cc:        freebsd-questions@FreeBSD.org
Subject:   RE: Why do I have lib*_p.a?
Message-ID:  <200004191951.PAA52037@server.baldwin.cx>
In-Reply-To: <20000419193513.A73459@phy.hr>

next in thread | previous in thread | raw e-mail | index | archive | help

On 19-Apr-00 Kresimir Kumericki wrote:
>    I was under impression that lib*_p.a libraries are "profiled"
> libraries that should not be built if NOPROFILE=true is
> specified in /etc/make.conf. I have uncommented this line but
> after make world I still have lots of _p.a libraries in
> /usr/lib. What have I got wrong?

They might still be left over from your initial installation.  The
initial install installs profiled libs by default.

>    And while I'm at it, what about .a and .so libs. Again, I
> seem to remember that .a are aout and .so elf libs. Does any
> of FreeBSD programs still use aout libs?

.a are static, or archive, libraries.  .so are dynamic libraries.
Both files are ELF files, the difference is how they are linked
into the program.  Static libraries are included into the program
binary.  Dynamic libraries aren't included in the program binary.
Instead, when the binary runs, it calls the dynamic linker, ld,
which then loads the dynamic library into memory and uses it.
This lets the dynamic library be shared between different programs
thus saving on memory.  It's a bit more complex than that, but
that is the basic picture.

HTH.

-- 

John Baldwin <jhb@FreeBSD.org> -- http://www.FreeBSD.org/~jhb/
PGP Key: http://www.cslab.vt.edu/~jobaldwi/pgpkey.asc
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200004191951.PAA52037>