Blame SOURCES/openldap-allop-overlay.patch

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