mrc0mmand / rpms / openldap

Forked from rpms/openldap 3 years ago
Clone

Blame SOURCES/openldap-allop-overlay.patch

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