mrc0mmand / rpms / openldap

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