[ITP] openldap-devel: Lightweight Directory Access Protocol clients and libraries
Corinna Vinschen
vinschen@redhat.com
Wed Dec 17 15:47:00 GMT 2003
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:
>
> * http://www.openldap.org/ (Homepage)
> * http://www.openldap.org/software/download/ (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 \
--disable-ipv6
$ 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
;;
*)
allow_undefined=yes
Then I called `make' and openldap has been built with shared libs.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Developer mailto:cygwin@cygwin.com
Red Hat, Inc.
More information about the Cygwin-apps
mailing list