From: Howard Chu Date: Mon, 13 Jun 2005 10:24:39 +0000 (+0000) Subject: ITS#3772 fix dependencies for static overlays X-Git-Tag: OPENLDAP_AC_BP~537 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=63f6e91a97295677db7ebda4db3f82c13137d95e;p=openldap ITS#3772 fix dependencies for static overlays --- diff --git a/servers/slapd/overlays/Makefile.in b/servers/slapd/overlays/Makefile.in index 2c49525f72..bd356d0c5f 100644 --- a/servers/slapd/overlays/Makefile.in +++ b/servers/slapd/overlays/Makefile.in @@ -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 +