Blame SOURCES/openldap-allop-overlay.patch

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