]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/overlays/Makefile.in
ITS#3773 additional fix
[openldap] / servers / slapd / overlays / Makefile.in
index 2c49525f7274a73e2303b76f254e8780cf31a421..bd356d0c5f521ead71f028843f2a51571bbe1c4a 100644 (file)
@@ -106,6 +106,14 @@ MKDEPFLAG = -l
 .c.lo:
        $(LTCOMPILE_MOD) $<
 
-$(LIBRARY): version.lo
+$(LIBRARY): $(OBJS) version.lo
        $(AR) rs $@ $(OBJS)
 
+# Must fixup depends for non-libtool objects
+depend-local:
+       @if test -n "$(OBJS)"; then \
+       OBJ2=`echo $(OBJS) | $(SED) -e 's/\.o//g'`; \
+       SCR=''; for i in $$OBJ2; do SCR="$$SCR -e s/^$$i.lo:/$$i.o:/"; done; \
+       mv Makefile Makefile.bak; $(SED) $$SCR Makefile.bak > Makefile && \
+       $(RM) Makefile.bak; fi
+