Browse Source

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>
lilik-openwrt-22.03
Val Kulkov 6 years ago
parent
commit
0dd445a248
1 changed files with 14 additions and 2 deletions
  1. +14
    -2
      lang/python/python-curl/Makefile

+ 14
- 2
lang/python/python-curl/Makefile View File

@ -55,8 +55,20 @@ $(call Package/python-curl/description)
(Variant for Python3) (Variant for Python3)
endef 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 PyPackage,python-curl))
$(eval $(call BuildPackage,python-curl)) $(eval $(call BuildPackage,python-curl))


Loading…
Cancel
Save