package/lftp: fix build with host expat
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Wed, 14 Aug 2019 17:52:38 +0000 (19:52 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Thu, 15 Aug 2019 13:16:45 +0000 (15:16 +0200)
Fixes:
 - https://bugs.buildroot.org/show_bug.cgi?id=11881

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/lftp/lftp.mk

index 93a0bf5c320ca3432e8910d4f4b64356598d640e..b8a2b24302eb76abd3675e3e688b914abf4d1326 100644 (file)
@@ -25,6 +25,9 @@ endif
 
 ifeq ($(BR2_PACKAGE_EXPAT)$(BR2_PACKAGE_LFTP_PROTO_HTTP),yy)
 LFTP_DEPENDENCIES += expat
+LFTP_CONF_OPTS += --with-expat=$(STAGING_DIR)/usr
+else
+LFTP_CONF_OPTS += --without-expat
 endif
 
 ifeq ($(BR2_PACKAGE_GNUTLS),y)