python-curl: fix compilation with libcurl-wolfssl
authorEneas U de Queiroz <redacted>
Wed, 26 Jun 2019 18:08:11 +0000 (15:08 -0300)
committerEneas Queiroz <redacted>
Tue, 2 Jul 2019 19:53:47 +0000 (16:53 -0300)
This allows compilation when libcurl is build with wolfssl as its SSL
backend.

Signed-off-by: Eneas U de Queiroz <redacted>
lang/python/python-curl/Makefile

index a7b2b92ae463529a4c2eac8201860e8633c65ba6..862507e63854613f62dba2abbdbff56061f941b5 100644 (file)
@@ -55,19 +55,22 @@ $(call Package/python-curl/description)
 (Variant for Python3)
 endef
 
+PYTHON_PKG_SETUP_ARGS:=
+PYTHON3_PKG_SETUP_ARGS:=
+
 ifdef CONFIG_LIBCURL_OPENSSL
-  PYTHON_PKG_SETUP_ARGS:=--with-openssl
-  PYTHON3_PKG_SETUP_ARGS:=--with-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
+  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
+  PYTHON_PKG_SETUP_ARGS+=--with-mbedtls
+  PYTHON3_PKG_SETUP_ARGS+=--with-mbedtls
 endif
 
 $(eval $(call PyPackage,python-curl))
git clone https://git.99rst.org/PROJECT