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

(ITS#3712) Patch to build shared libraries under cygwin



Full_Name: Dr. Volker Zell
Version: 2.2.26
OS: W2K using cygwin
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (148.87.1.170)


To get a clean build under the latest cygwin version we have to disable Winsock
tests. Also adding -no-undefined to top.mk enables shared library builds under
cygwin.

diff -urN -x .build -x .inst -x .sinst openldap-2.2.26-orig/build/top.mk
openldap-2.2.26/build/top.mk
--- openldap-2.2.26-orig/build/top.mk   2005-01-20 18:00:55.000000000 +0100
+++ openldap-2.2.26/build/top.mk        2005-05-04 12:50:55.288185600 +0200
@@ -69,7 +69,7 @@
 LIBTOOL = @LIBTOOL@
 LIBRELEASE = @OPENLDAP_LIBRELEASE@
 LIBVERSION = @OPENLDAP_LIBVERSION@
-LTVERSION = -release $(LIBRELEASE) -version-info $(LIBVERSION)
+LTVERSION = -release $(LIBRELEASE) -version-info $(LIBVERSION) -no-undefined

 # libtool --only flag for libraries: platform specific
 NT_LTONLY_LIB = # --only-$(BUILD_LIBS_DYNAMIC)
diff -urN -x .build -x .inst -x .sinst openldap-2.2.26-orig/configure
openldap-2.2.26/configure
--- openldap-2.2.26-orig/configure      2005-03-23 00:20:29.000000000 +0100
+++ openldap-2.2.26/configure   2005-05-04 12:50:55.318228800 +0200
@@ -8724,6 +8724,10 @@

 fi

+if test "${CYGWIN}" = yes
+then
+ echo Winsock tests disabled on Cygwin
+else
 if test "$ac_cv_header_winsock_h" = yes; then
 echo $ac_n "checking for winsock""... $ac_c" 1>&6
 echo "configure:8730: checking for winsock" >&5
@@ -8782,7 +8786,7 @@

 echo "$ac_t""$ol_cv_winsock" 1>&6
 fi
-
+fi

 echo $ac_n "checking for socket""... $ac_c" 1>&6
 echo "configure:8789: checking for socket" >&5