From owner-freebsd-questions Wed Apr 19 12:52:46 2000 Delivered-To: freebsd-questions@freebsd.org Received: from server.baldwin.cx (jobaldwi.campus.vt.edu [198.82.67.146]) by hub.freebsd.org (Postfix) with ESMTP id 43B8737B5AA for ; Wed, 19 Apr 2000 12:52:28 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: from john.baldwin.cx (john [10.0.0.2]) by server.baldwin.cx (8.9.3/8.9.3) with ESMTP id PAA52037; Wed, 19 Apr 2000 15:51:17 -0400 (EDT) (envelope-from jhb@FreeBSD.org) Message-Id: <200004191951.PAA52037@server.baldwin.cx> X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20000419193513.A73459@phy.hr> Date: Wed, 19 Apr 2000 15:51:16 -0400 (EDT) From: John Baldwin To: Kresimir Kumericki Subject: RE: Why do I have lib*_p.a? Cc: freebsd-questions@FreeBSD.org Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 -- 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