dropbear: link statically if BR2_PREFER_STATIC_LIB
authorPeter Korsgaard <jacmet@sunsite.dk>
Fri, 13 May 2011 10:04:10 +0000 (12:04 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Fri, 13 May 2011 10:04:10 +0000 (12:04 +0200)
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/dropbear/dropbear.mk

index b36c278a2927f13dd1b630993b2d6ae9176036df..d73e9934667bdeb31a0aaec219a4f436e3687214 100644 (file)
@@ -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