openldap-allop-overlay.patch 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. Compile AllOp together with other overlays.
  2. Author: Matus Honek <mhonek@redhat.com>
  3. Resolves: #1319782
  4. diff --git a/servers/slapd/overlays/Makefile.in b/servers/slapd/overlays/Makefile.in
  5. --- a/servers/slapd/overlays/Makefile.in
  6. +++ b/servers/slapd/overlays/Makefile.in
  7. @@ -33,7 +33,8 @@ SRCS = overlays.c \
  8. translucent.c \
  9. unique.c \
  10. valsort.c \
  11. - smbk5pwd.c
  12. + smbk5pwd.c \
  13. + allop.c
  14. OBJS = statover.o \
  15. @SLAPD_STATIC_OVERLAYS@ \
  16. overlays.o
  17. @@ -53,7 +54,7 @@ NT_LINK_LIBS = -L.. -lslapd $(@BUILD_LIBS_DYNAMIC@_LDAP_LIBS)
  18. UNIX_LINK_LIBS = $(@BUILD_LIBS_DYNAMIC@_LDAP_LIBS)
  19. LIBRARY = ../liboverlays.a
  20. -PROGRAMS = @SLAPD_DYNAMIC_OVERLAYS@ smbk5pwd.la
  21. +PROGRAMS = @SLAPD_DYNAMIC_OVERLAYS@ smbk5pwd.la allop.la
  22. XINCPATH = -I.. -I$(srcdir)/..
  23. XDEFS = $(MODULES_CPPFLAGS)
  24. @@ -125,6 +126,12 @@ unique.la : unique.lo
  25. smbk5pwd.la : smbk5pwd.lo
  26. $(LTLINK_MOD) -module -o $@ smbk5pwd.lo version.lo $(LINK_LIBS) $(shell pkg-config openssl --libs)
  27. +allop.lo : allop.c
  28. + $(LTCOMPILE_MOD) -DDO_SAMBA -UHAVE_MOZNSS -DHAVE_OPENSSL $(shell pkg-config openssl --cflags) $<
  29. +
  30. +allop.la : allop.lo
  31. + $(LTLINK_MOD) -module -o $@ allop.lo version.lo $(LINK_LIBS) $(shell pkg-config openssl --libs)
  32. +
  33. install-local: $(PROGRAMS)
  34. @if test -n "$?" ; then \
  35. $(MKDIR) $(DESTDIR)$(moduledir); \