Skip to contentSkip to conversation

dropbear: fix static link for version 0.53.1

PATCH New Jean-Christophe PLAGNIOL-VILLARD 2 participants 4 messages May 1, 2011 – May 13, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dropbear: fix static link for version 0.53.1

---
 .../dropbear-0.53.1-static_build_fix.patch         |   26 ++++++++++++++++++++
 1 files changed, 26 insertions(+), 0 deletions(-)
 create mode 100644 package/dropbear/dropbear-0.53.1-static_build_fix.patch
package/dropbear/dropbear-0.53.1-static_build_fix.patch new file +26 -0
new file mode 100644
index 0000000..0e0a91a
@@ -0,0 +1,26 @@
+dropbear: fix static build
+
+the -lcrypt is missing during the link
+
+svr-authpasswd.o: In function `svr_auth_password':
+svr-authpasswd.c:(.text+0xfc): undefined reference to `crypt'
+collect2: ld returned 1 exit status
+
+Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
+---
+ Makefile.in |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+Index: b/Makefile.in
+===================================================================
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -77,7 +77,7 @@ STRIP=@STRIP@
+ INSTALL=@INSTALL@
+ CPPFLAGS=@CPPFLAGS@
+ CFLAGS+=-I. -I$(srcdir) $(CPPFLAGS) @CFLAGS@
+-LIBS+=@LIBS@
++LIBS+=@CRYPTLIB@ @LIBS@
+ LDFLAGS=@LDFLAGS@
+ 
+ EXEEXT=@EXEEXT@
Signature · 1 line
1.7.4.1
#1 lore raw

PATCH 1/1 dropbear: fix static link for version 0.53.1

Quoted 2 lines · Jean-Christophe PLAGNIOL-VILLARD

---

Ping

Best Regards,
J.

Quoted 38 lines
 .../dropbear-0.53.1-static_build_fix.patch         |   26 ++++++++++++++++++++
 1 files changed, 26 insertions(+), 0 deletions(-)
 create mode 100644 package/dropbear/dropbear-0.53.1-static_build_fix.patch
package/dropbear/dropbear-0.53.1-static_build_fix.patch new file +26 -0
new file mode 100644
index 0000000..0e0a91a
@@ -0,0 +1,26 @@
+dropbear: fix static build
+
+the -lcrypt is missing during the link
+
+svr-authpasswd.o: In function `svr_auth_password':
+svr-authpasswd.c:(.text+0xfc): undefined reference to `crypt'
+collect2: ld returned 1 exit status
+
+Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
+---
+ Makefile.in |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+Index: b/Makefile.in
+===================================================================
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -77,7 +77,7 @@ STRIP=@STRIP@
+ INSTALL=@INSTALL@
+ CPPFLAGS=@CPPFLAGS@
+ CFLAGS+=-I. -I$(srcdir) $(CPPFLAGS) @CFLAGS@
+-LIBS+=@LIBS@
++LIBS+=@CRYPTLIB@ @LIBS@
+ LDFLAGS=@LDFLAGS@
+ 
+ EXEEXT=@EXEEXT@
Signature · 1 line
1.7.4.1
#3 lore raw

PATCH 1/1 dropbear: fix static link for version 0.53.1

In reply to Jean-Christophe PLAGNIOL-VILLARD
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"JC" == Jean-Christophe PLAGNIOL-VILLARD <[email protected]> writes:

JC> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]> JC> ---

 JC>  .../dropbear-0.53.1-static_build_fix.patch         |   26 ++++++++++++++++++++

Committed, thanks. Please don't forget to send patch upstream.

I've fixed dropbear to automatically link statically when BR2_PREFER_STATIC_LIB is enabled.

Signature · 1 line
Bye, Peter Korsgaard