[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Always static link in OpenLDAP 2.1?

On Wed, Nov 13, 2002 at 07:59:02AM -0800, Kurt D. Zeilenga wrote:
> At 11:51 PM 2002-11-12, Rainer Clasen wrote:
> >Kurt D. Zeilenga wrote:
> >> At 10:02 PM 2002-11-11, Ganesan R wrote:
> >> >This effectively makes all executables static. Is this intentional?
> >> 
> >> Yes. The executables have always statically linked -lldap -llber.
> >
> >Just out of curiosity: Is there a special reason to not link them
> >dynamically?
> Yes.  Because library version numbers are incremented at most
> once per release (in release branches, never in HEAD), those
> who want to test release engineering code installed in a separate
> directories from their production code can easily run into dynamic
> library versioning problems that could invalid their testing or
> worse.  Linking statically ensures those who test before putting
> code into production are testing the code they think they are
> testing.

Then why don't those testing the release engineering code build with
--prefix=[path to openldap x.y.z]? Or, how about an autoconf option to
disable -static? We remove -static in build/top.mk for the packages we
ship to our customers.

albert chin (china@thewrittenword.com)