pkgsrc/databases/openldap/patches/patch-aj
jlam 6b7a749803 We don't actually want everything to be built with pthreads -- only
libldap_r and slurpd.  Patch those Makefiles (patch-aj, patch-ak) to
pass $(PTHREAD_CFLAGS) and $(PTHREAD_LDFLAGS) to the build.  The
configure process correctly adds any necessary libraries, so adding
$(PTHREAD_LIBS) isn't needed.  Bump the PKGREVISION since the LDAP
libraries are no longer linked against libpthread.

This fixes PR pkg/28259.
2004-11-18 19:07:04 +00:00

15 lines
506 B
Text

$NetBSD: patch-aj,v 1.1 2004/11/18 19:07:04 jlam Exp $
--- libraries/libldap_r/Makefile.in.orig 2004-01-01 13:16:30.000000000 -0500
+++ libraries/libldap_r/Makefile.in
@@ -56,6 +56,10 @@ XXXLIBS = $(LTHREAD_LIBS)
NT_LINK_LIBS = $(LDAP_LIBLBER_LA) $(AC_LIBS) $(SECURITY_LIBS)
UNIX_LINK_LIBS = $(LDAP_LIBLBER_LA) $(AC_LIBS) $(SECURITY_LIBS)
+AC_CFLAGS += $(PTHREAD_CFLAGS)
+AC_LDFLAGS += $(PTHREAD_LDFLAGS)
+LINK_LIBS += $(LTHREAD_LIBS)
+
.links : Makefile
@for i in $(XXSRCS); do \
$(RM) $$i ; \