1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-17 12:53:54 +02:00

python-curl: remove hardcoded dependency on mbedtls

Fixes issue #8978. If libcurl's SSL library is set to an SSL
library other than libmbedtls, compilation fails. This patch
configures python-curl to use the currently selected SSL library
for libcurl.

Signed-off-by: Val Kulkov <val.kulkov@gmail.com>
This commit is contained in:
Val Kulkov 2019-05-14 01:47:09 -04:00
parent 1f4df64f6a
commit 0dd445a248

View File

@ -55,8 +55,20 @@ $(call Package/python-curl/description)
(Variant for Python3)
endef
PYTHON_PKG_SETUP_ARGS:=--with-mbedtls
PYTHON3_PKG_SETUP_ARGS:=--with-mbedtls
ifdef CONFIG_LIBCURL_OPENSSL
PYTHON_PKG_SETUP_ARGS:=--with-openssl
PYTHON3_PKG_SETUP_ARGS:=--with-openssl
endif
ifdef CONFIG_LIBCURL_GNUTLS
PYTHON_PKG_SETUP_ARGS:=--with-gnutls
PYTHON3_PKG_SETUP_ARGS:=--with-gnutls
endif
ifdef CONFIG_LIBCURL_MBEDTLS
PYTHON_PKG_SETUP_ARGS:=--with-mbedtls
PYTHON3_PKG_SETUP_ARGS:=--with-mbedtls
endif
$(eval $(call PyPackage,python-curl))
$(eval $(call BuildPackage,python-curl))