2013-04-24 22:56:13 +00:00
|
|
|
Subject: [PATCH 2/6] static_build_fix
|
2011-12-27 21:54:23 +00:00
|
|
|
Upstream-Status: Submitted
|
2011-09-30 01:25:30 +00:00
|
|
|
|
2011-12-27 21:54:23 +00:00
|
|
|
dropbear: fix static build
|
2011-09-30 01:25:30 +00:00
|
|
|
|
2011-12-27 21:54:23 +00:00
|
|
|
A more appropriate fix is to remove @CRYPTLIB@ from the objs
|
|
|
|
line, since it will cause problems with target checking,
|
|
|
|
this change also meets the goals of the orignal change which
|
|
|
|
was to not link libcrypt to all binaries.
|
2011-09-30 01:25:30 +00:00
|
|
|
|
|
|
|
svr-authpasswd.o: In function `svr_auth_password':
|
|
|
|
svr-authpasswd.c:(.text+0xfc): undefined reference to `crypt'
|
|
|
|
collect2: ld returned 1 exit status
|
|
|
|
|
2011-12-27 21:54:23 +00:00
|
|
|
Signed-off-by: Saul Wold <sgw@linux.intel.com>
|
2013-04-24 22:56:13 +00:00
|
|
|
---
|
|
|
|
Makefile.in | 11 +++++++----
|
|
|
|
1 file changed, 7 insertions(+), 4 deletions(-)
|
2011-09-30 01:25:30 +00:00
|
|
|
|
2013-04-24 22:56:13 +00:00
|
|
|
diff --git a/Makefile.in b/Makefile.in
|
|
|
|
index 4bdd845..e82e561 100644
|
|
|
|
--- a/Makefile.in
|
|
|
|
+++ b/Makefile.in
|
|
|
|
@@ -56,7 +56,7 @@ HEADERS=options.h dbutil.h session.h packet.h algo.h ssh.h buffer.h kex.h \
|
2011-12-27 21:54:23 +00:00
|
|
|
loginrec.h atomicio.h x11fwd.h agentfwd.h tcpfwd.h compat.h \
|
|
|
|
listener.h fake-rfc2553.h
|
|
|
|
|
|
|
|
-dropbearobjs=$(COMMONOBJS) $(CLISVROBJS) $(SVROBJS) @CRYPTLIB@
|
|
|
|
+dropbearobjs=$(COMMONOBJS) $(CLISVROBJS) $(SVROBJS)
|
|
|
|
dbclientobjs=$(COMMONOBJS) $(CLISVROBJS) $(CLIOBJS)
|
|
|
|
dropbearkeyobjs=$(COMMONOBJS) $(KEYOBJS)
|
|
|
|
dropbearconvertobjs=$(COMMONOBJS) $(CONVERTOBJS)
|
2013-04-24 22:56:13 +00:00
|
|
|
@@ -158,7 +158,10 @@ dbclient: $(dbclientobjs)
|
2011-12-27 21:54:23 +00:00
|
|
|
dropbearkey: $(dropbearkeyobjs)
|
|
|
|
dropbearconvert: $(dropbearconvertobjs)
|
|
|
|
|
|
|
|
-dropbear dbclient dropbearkey dropbearconvert: $(HEADERS) $(LIBTOM_DEPS) Makefile
|
|
|
|
+dropbear: $(HEADERS) $(LIBTOM_DEPS) Makefile
|
|
|
|
+ $(CC) $(LDFLAGS) -o $@$(EXEEXT) $($@objs) $(LIBS) @CRYPTLIB@
|
|
|
|
+
|
|
|
|
+dbclient dropbearkey dropbearconvert: $(HEADERS) $(LIBTOM_DEPS) Makefile
|
|
|
|
$(CC) $(LDFLAGS) -o $@$(EXEEXT) $($@objs) $(LIBS)
|
|
|
|
|
|
|
|
# scp doesn't use the libs so is special.
|
2013-04-24 22:56:13 +00:00
|
|
|
@@ -169,14 +172,14 @@ scp: $(SCPOBJS) $(HEADERS) Makefile
|
2011-12-27 21:54:23 +00:00
|
|
|
# multi-binary compilation.
|
|
|
|
MULTIOBJS=
|
|
|
|
ifeq ($(MULTI),1)
|
|
|
|
- MULTIOBJS=dbmulti.o $(sort $(foreach prog, $(PROGRAMS), $($(prog)objs))) @CRYPTLIB@
|
|
|
|
+ MULTIOBJS=dbmulti.o $(sort $(foreach prog, $(PROGRAMS), $($(prog)objs)))
|
|
|
|
CFLAGS+=$(addprefix -DDBMULTI_, $(PROGRAMS)) -DDROPBEAR_MULTI
|
|
|
|
endif
|
|
|
|
|
|
|
|
dropbearmulti: multilink
|
|
|
|
|
|
|
|
multibinary: $(HEADERS) $(MULTIOBJS) $(LIBTOM_DEPS) Makefile
|
|
|
|
- $(CC) $(LDFLAGS) -o dropbearmulti$(EXEEXT) $(MULTIOBJS) $(LIBS)
|
|
|
|
+ $(CC) $(LDFLAGS) -o dropbearmulti$(EXEEXT) $(MULTIOBJS) $(LIBS) @CRYPTLIB@
|
|
|
|
|
|
|
|
multilink: multibinary $(addprefix link, $(PROGRAMS))
|
2011-09-30 01:25:30 +00:00
|
|
|
|
2013-04-24 22:56:13 +00:00
|
|
|
--
|
|
|
|
1.7.11.7
|
|
|
|
|