--- directory/c-sdk/ldap/libraries/libprldap/Makefile.in.orig	2006-02-03 15:44:49.000000000 +0100
+++ directory/c-sdk/ldap/libraries/libprldap/Makefile.in	2008-03-28 10:04:03.000000000 +0100
@@ -224,7 +224,7 @@ $(DLLPRLDAP): $(OBJS) $(LIBDIR) $(PRLDAP
 ifdef SO_FILES_TO_REMOVE
 	-$(RM) $(SO_FILES_TO_REMOVE)
 endif
-	$(LINK_DLL) $(PRLDAP_EXPORT_FLAGS) $(EXTRA_LIBS)
+	$(LINK_DLL) $(PRLDAP_EXPORT_FLAGS) $(OS_LDFLAGS) $(EXTRA_LIBS)
 
 veryclean:: clean
 
