It seems that the libtool flag to not create a versioned object is
"-avoid-version". It also looks like openldap already does that when
compiling under Windows (from build/top.mk):

# platform-specific libtool flags
NT_LTFLAGS_LIB = -no-undefined -avoid-version -rpath $(libdir)
NT_LTFLAGS_MOD = -no-undefined -avoid-version -rpath $(moduledir)
UNIX_LTFLAGS_LIB = $(LTVERSION) -rpath $(libdir)
UNIX_LTFLAGS_MOD = $(LTVERSION) -rpath $(moduledir)

I tweaked the template makefile to be:

UNIX_LTFLAGS_MOD = -avoid-version -rpath $(moduledir)

and it resulted in:

-rwxr-xr-x 1 henson henson     811 May 22 18:41 accesslog.la
-rwxr-xr-x 1 henson henson  151064 May 22 18:41 accesslog.so
-rwxr-xr-x 1 henson henson     805 May 22 18:41 auditlog.la
-rwxr-xr-x 1 henson henson   59072 May 22 18:41 auditlog.so
-rwxr-xr-x 1 henson henson     805 May 22 18:41 back_mdb.la
-rwxr-xr-x 1 henson henson 1308264 May 22 18:41 back_mdb.so
[...]

So it seems it should be easy enough to add a patch to get rid of the
versions in the module files if so desired. I am still pending a response on
the openldap mailing list as to whether they are interested in doing this
upstream or not.


Reply via email to