Subject: Re: "-Ldir -lname" vs. "dir/libname.so"
To: Jonathan Stone <jonathan@DSG.Stanford.EDU>
From: Todd Vierling <firstname.lastname@example.org>
Date: 03/13/2002 17:17:42
On Wed, 13 Mar 2002, Jonathan Stone wrote:
: I assume you're not acutally linking two digits of ELF version number
: into the final binary? ELF version numbers are hard-bound: link
: against libfoo.so.0.0, upgrade to libfoo.so.0.1, remove libfoo.so.0.0,
: and then the linked binary fails to find libfoo.so.0.0.
Not true in the presence of -soname. If -soname is set, that is the name
that will be used when searching at runtime (even if a .major.minor is
completely specified at link time).
All our libraries, and those made by libtool, properly use -soname now (but
they didn't at first...).
-- Todd Vierling <email@example.com> * Wasabi & NetBSD: Run with it.
-- CDs, Integration, Embedding, Support -- http://www.wasabisystems.com/