mirror of
https://github.com/openwrt/packages.git
synced 2025-12-24 06:18:21 +04:00
python-curl: fix compilation with libcurl-wolfssl
This allows compilation when libcurl is build with wolfssl as its SSL
backend.
Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
(cherry-picked from 3e78945eaf)
This commit is contained in:
committed by
Josef Schlehofer
parent
b6688f0e79
commit
07d5a24b16
@@ -55,19 +55,22 @@ $(call Package/python-curl/description)
|
|||||||
(Variant for Python3)
|
(Variant for Python3)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
PYTHON_PKG_SETUP_ARGS:=
|
||||||
|
PYTHON3_PKG_SETUP_ARGS:=
|
||||||
|
|
||||||
ifdef CONFIG_LIBCURL_OPENSSL
|
ifdef CONFIG_LIBCURL_OPENSSL
|
||||||
PYTHON_PKG_SETUP_ARGS:=--with-openssl
|
PYTHON_PKG_SETUP_ARGS+=--with-openssl
|
||||||
PYTHON3_PKG_SETUP_ARGS:=--with-openssl
|
PYTHON3_PKG_SETUP_ARGS+=--with-openssl
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifdef CONFIG_LIBCURL_GNUTLS
|
ifdef CONFIG_LIBCURL_GNUTLS
|
||||||
PYTHON_PKG_SETUP_ARGS:=--with-gnutls
|
PYTHON_PKG_SETUP_ARGS+=--with-gnutls
|
||||||
PYTHON3_PKG_SETUP_ARGS:=--with-gnutls
|
PYTHON3_PKG_SETUP_ARGS+=--with-gnutls
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifdef CONFIG_LIBCURL_MBEDTLS
|
ifdef CONFIG_LIBCURL_MBEDTLS
|
||||||
PYTHON_PKG_SETUP_ARGS:=--with-mbedtls
|
PYTHON_PKG_SETUP_ARGS+=--with-mbedtls
|
||||||
PYTHON3_PKG_SETUP_ARGS:=--with-mbedtls
|
PYTHON3_PKG_SETUP_ARGS+=--with-mbedtls
|
||||||
endif
|
endif
|
||||||
|
|
||||||
$(eval $(call PyPackage,python-curl))
|
$(eval $(call PyPackage,python-curl))
|
||||||
|
|||||||
Reference in New Issue
Block a user