summaryrefslogtreecommitdiffstats
path: root/package/dropbear
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2011-05-13 12:04:10 +0200
committerPeter Korsgaard <jacmet@sunsite.dk>2011-05-13 12:04:10 +0200
commit7fec8e8b753a77f4635dfa74819bb75354b90ee1 (patch)
tree7e37a2824db0b4f992ff233d99d4bd5f48e15f00 /package/dropbear
parentb8e52c47d7dd992595de0177d332323162313735 (diff)
downloadbuildroot-novena-7fec8e8b753a77f4635dfa74819bb75354b90ee1.tar.gz
buildroot-novena-7fec8e8b753a77f4635dfa74819bb75354b90ee1.zip
dropbear: link statically if BR2_PREFER_STATIC_LIB
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/dropbear')
-rw-r--r--package/dropbear/dropbear.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/package/dropbear/dropbear.mk b/package/dropbear/dropbear.mk
index b36c278a2..d73e99346 100644
--- a/package/dropbear/dropbear.mk
+++ b/package/dropbear/dropbear.mk
@@ -12,6 +12,10 @@ DROPBEAR_TARGET_BINS = dbclient dropbearkey dropbearconvert scp ssh
DROPBEAR_MAKE = $(MAKE) MULTI=1 SCPPROGRESS=1 \
PROGRAMS="dropbear dbclient dropbearkey dropbearconvert scp"
+ifeq ($(BR2_PREFER_STATIC_LIB),y)
+DROPBEAR_MAKE += STATIC=1
+endif
+
define DROPBEAR_FIX_XAUTH
$(SED) 's,^#define XAUTH_COMMAND.*/xauth,#define XAUTH_COMMAND "/usr/bin/xauth,g' $(@D)/options.h
endef