This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [ITP] openldap-devel: Lightweight Directory Access Protocol clients and libraries

On Dec 17 16:31, Dr. Volker Zell wrote:
> Hi
> I would like to contribute and maintain the static LDAP libraries and clients 
> from the openldap package:
>  *                    (Homepage)
>  *  (Download location) 
> The libraries are needed for example to LDAP enable xemacs.

What about the shared libs?  I once built openldap with shared libs
using a really ugly trick, but probably there's a more "official"
way to get the same result.

What I did:

$ ./configure \
        --prefix=/usr \
        --sysconfdir=/etc \
        --libexecdir='$(prefix)/sbin' \
        --localstatedir=/var \
        --datadir='$(prefix)/share' \
        --mandir='$(prefix)/share/man' \
        --infodir='$(prefix)/share/info' \
        --enable-dynamic \
        --enable-shared=yes \
        --with-gnu-ld \
        --without-pic \
        --enable-modules \
        --enable-crypt \
        --enable-wrappers \
$ make depend

Then I replaced libtool in the toplevel directory with the one from
the libtool-devel-1.5-3 package.  Next I applied the following patch:

--- /usr/autotool/devel/bin/libtool     2003-08-18 07:36:04.001000000 +0200
+++ libtool     2003-09-25 22:35:13.892495700 +0200
@@ -1180,7 +1180,11 @@ EOF
       # even a static library is built.  For now, we need to specify
       # -no-undefined on the libtool link line when we can be certain
       # that all symbols are satisfied, otherwise we get a static library.
-      allow_undefined=yes
+      # allow_undefined=yes
+      # CV: Hack to build shared libs for Cygwin 1.5.x
+      allow_undefined=no
+      avoid_version=yes

Then I called `make' and openldap has been built with shared libs.


Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                      
Red Hat, Inc.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]