lftp: fix static linking
authorPeter Korsgaard <peter@korsgaard.com>
Mon, 17 Mar 2014 08:59:45 +0000 (09:59 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Mon, 17 Mar 2014 08:59:45 +0000 (09:59 +0100)
Fixes http://autobuild.buildroot.net/results/14b/14b72a78936233b60dd893cef7803f909b846bea/

--with-modules only makes sense when linking shared, so disable when not.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/lftp/lftp.mk

index 0b00594d187bcf2173552bebe18c32b96d3d1fd0..5c6fd4bb6f0a8c71feac121a199754171cc43b54 100644 (file)
@@ -11,7 +11,9 @@ LFTP_LICENSE_FILES = COPYING
 LFTP_AUTORECONF = YES
 LFTP_DEPENDENCIES  = readline zlib
 
+ifneq ($(BR2_PREFER_STATIC_LIB),y)
 LFTP_CONF_OPT += --with-modules
+endif
 
 ifeq ($(BR2_PACKAGE_GNUTLS),y)
 LFTP_DEPENDENCIES += gnutls