[patch] fix constant relinking when using multi builds
Mike Frysinger
vapier at gentoo.org
Mon Dec 9 09:11:14 WST 2013
turn dropbearmulti into a real target so we don't constantly re-link it
otherwise make has no idea what "multibinary" is and so always re-links it
-mike
--- a/Makefile.in
+++ b/Makefile.in
@@ -175,10 +175,10 @@ ifeq ($(MULTI),1)
CFLAGS+=$(addprefix -DDBMULTI_, $(PROGRAMS)) -DDROPBEAR_MULTI
endif
-dropbearmulti: multilink
+dropbearmulti$(EXEEXT): $(HEADERS) $(MULTIOBJS) $(LIBTOM_DEPS) Makefile
+ $(CC) $(LDFLAGS) -o $@ $(MULTIOBJS) $(LIBS)
-multibinary: $(HEADERS) $(MULTIOBJS) $(LIBTOM_DEPS) Makefile
- $(CC) $(LDFLAGS) -o dropbearmulti$(EXEEXT) $(MULTIOBJS) $(LIBS)
+multibinary: dropbearmulti$(EXEEXT)
multilink: multibinary $(addprefix link, $(PROGRAMS))
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.ucc.gu.uwa.edu.au/pipermail/dropbear/attachments/20131208/b7d2e39a/attachment.sig
More information about the Dropbear
mailing list