diff --git a/package/lynx/lynx.mk b/package/lynx/lynx.mk index 3ac5b4cabf..b6cc1b2b91 100644 --- a/package/lynx/lynx.mk +++ b/package/lynx/lynx.mk @@ -23,7 +23,7 @@ endif ifeq ($(BR2_PACKAGE_OPENSSL),y) LYNX_DEPENDENCIES += host-pkgconf openssl LYNX_CONF_OPTS += --with-ssl=$(STAGING_DIR)/usr -LYNX_CONF_ENV = LIBS=`$(PKG_CONFIG_HOST_BINARY) --libs openssl` +LYNX_LIBS += `$(PKG_CONFIG_HOST_BINARY) --libs openssl` else ifeq ($(BR2_PACKAGE_GNUTLS),y) LYNX_DEPENDENCIES += gnutls LYNX_CONF_OPTS += --with-gnutls @@ -36,4 +36,11 @@ else LYNX_CONF_OPTS += --without-zlib endif +ifeq ($(BR2_PACKAGE_LIBIDN),y) +LYNX_DEPENDENCIES += libidn +LYNX_LIBS += `$(PKG_CONFIG_HOST_BINARY) --libs libidn` +endif + +LYNX_CONF_ENV = LIBS="$(LYNX_LIBS)" + $(eval $(autotools-package))