Blame SOURCES/openldap-allop-overlay.patch

adf540
Compile AllOp together with other overlays.
adf540
adf540
Author: Matus Honek <mhonek@redhat.com>
adf540
Resolves: #990893
adf540
adf540
diff --git a/servers/slapd/overlays/Makefile.in b/servers/slapd/overlays/Makefile.in
adf540
--- a/servers/slapd/overlays/Makefile.in
adf540
+++ b/servers/slapd/overlays/Makefile.in
adf540
@@ -33,7 +33,8 @@ SRCS = overlays.c \
adf540
 	translucent.c \
adf540
 	unique.c \
adf540
 	valsort.c \
adf540
-	smbk5pwd.c
adf540
+	smbk5pwd.c \
adf540
+	allop.c
adf540
 OBJS = statover.o \
adf540
 	@SLAPD_STATIC_OVERLAYS@ \
adf540
 	overlays.o
adf540
@@ -53,7 +54,7 @@ NT_LINK_LIBS = -L.. -lslapd $(@BUILD_LIBS_DYNAMIC@_LDAP_LIBS)
adf540
 UNIX_LINK_LIBS = $(@BUILD_LIBS_DYNAMIC@_LDAP_LIBS)
adf540
 
adf540
 LIBRARY = ../liboverlays.a
adf540
-PROGRAMS = @SLAPD_DYNAMIC_OVERLAYS@ smbk5pwd.la
adf540
+PROGRAMS = @SLAPD_DYNAMIC_OVERLAYS@ smbk5pwd.la allop.la
adf540
 
adf540
 XINCPATH = -I.. -I$(srcdir)/..
adf540
 XDEFS = $(MODULES_CPPFLAGS)
adf540
@@ -125,6 +126,12 @@ unique.la : unique.lo
adf540
 smbk5pwd.la : smbk5pwd.lo
adf540
 	$(LTLINK_MOD) -module -o $@ smbk5pwd.lo version.lo $(LINK_LIBS) $(shell pkg-config openssl --libs)
adf540
 
adf540
+allop.lo : allop.c
adf540
+	$(LTCOMPILE_MOD) -DDO_SAMBA -UHAVE_MOZNSS -DHAVE_OPENSSL $(shell pkg-config openssl --cflags) $<
adf540
+
adf540
+allop.la : allop.lo
adf540
+	$(LTLINK_MOD) -module -o $@ allop.lo version.lo $(LINK_LIBS) $(shell pkg-config openssl --libs)
adf540
+
adf540
 install-local:	$(PROGRAMS)
adf540
 	@if test -n "$?" ; then \
adf540
 		$(MKDIR) $(DESTDIR)$(moduledir); \