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:
parent
1f4df64f6a
commit
0dd445a248
1 changed files with 14 additions and 2 deletions
|
@ -55,8 +55,20 @@ $(call Package/python-curl/description)
|
||||||
(Variant for Python3)
|
(Variant for Python3)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
PYTHON_PKG_SETUP_ARGS:=--with-mbedtls
|
ifdef CONFIG_LIBCURL_OPENSSL
|
||||||
PYTHON3_PKG_SETUP_ARGS:=--with-mbedtls
|
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 PyPackage,python-curl))
|
||||||
$(eval $(call BuildPackage,python-curl))
|
$(eval $(call BuildPackage,python-curl))
|
||||||
|
|
Loading…
Reference in a new issue