From 870842ccee5bb9c116547f29dbb1c548979e0728 Mon Sep 17 00:00:00 2001 From: Gunter Knauf Date: Sat, 25 Aug 2007 12:08:38 +0000 Subject: [PATCH] only link with -lwldap32 if we dont use other LDAP SDKs. --- lib/Makefile.m32 | 7 ++++++- src/Makefile.m32 | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/lib/Makefile.m32 b/lib/Makefile.m32 index 96ca7754e..e3e0569d7 100644 --- a/lib/Makefile.m32 +++ b/lib/Makefile.m32 @@ -91,7 +91,12 @@ ifdef USE_LDAP_OPENLDAP CFLAGS += -DCURL_HAS_OPENLDAP_LDAPSDK DLL_LIBS += -L"$(LDAP_SDK)/lib" -lldap -llber endif -DLL_LIBS += -lws2_32 -lwinmm -lwldap32 +ifndef USE_LDAP_NOVELL +ifndef USE_LDAP_OPENLDAP +DLL_LIBS += -lwldap32 +endif +endif +DLL_LIBS += -lws2_32 -lwinmm COMPILE = $(CC) $(INCLUDES) $(CFLAGS) # Makefile.inc provides the CSOURCES and HHEADERS defines diff --git a/src/Makefile.m32 b/src/Makefile.m32 index 2aea0a52a..30ba77bbd 100644 --- a/src/Makefile.m32 +++ b/src/Makefile.m32 @@ -99,7 +99,12 @@ ifdef USE_LDAP_OPENLDAP CFLAGS += -DCURL_HAS_OPENLDAP_LDAPSDK curl_LDADD += -L"$(LDAP_SDK)/lib" -lldap -llber endif -curl_LDADD += -lws2_32 -lwinmm -lwldap32 +ifndef USE_LDAP_NOVELL +ifndef USE_LDAP_OPENLDAP +curl_LDADD += -lwldap32 +endif +endif +curl_LDADD += -lws2_32 -lwinmm COMPILE = $(CC) $(INCLUDES) $(CFLAGS) # Makefile.inc provides the CSOURCES and HHEADERS defines