curl: rebuild when libopenssl config changes
authorDENG Qingfang <dengqf6@mail2.sysu.edu.cn>
Thu, 31 Oct 2019 15:39:02 +0000 (23:39 +0800)
committerKevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Sun, 29 Mar 2020 13:31:04 +0000 (14:31 +0100)
When some libopenssl options change curl will have to be rebuild to
adapt to those changes, avoiding undefined reference errors or features
disabled in curl.

Add CONFIG_OPENSSL_ENGINE, CONFIG_OPENSSL_WITH_COMPRESSION and
CONFIG_OPENSSL_WITH_NPN to PKG_CONFIG_DEPENDS so it will trigger
rebuild every time the options are changed.

Signed-off-by: DENG Qingfang <dengqf6@mail2.sysu.edu.cn>
package/network/utils/curl/Makefile

index fdb8533ae929d296c6ba7dec06551103d4928959..c483ec1186df3e8e04d8f4a342d22b77843c9b69 100644 (file)
@@ -64,7 +64,11 @@ PKG_CONFIG_DEPENDS:= \
   CONFIG_LIBCURL_TLS_SRP \
   CONFIG_LIBCURL_UNIX_SOCKETS \
   CONFIG_LIBCURL_VERBOSE \
-  CONFIG_LIBCURL_NTLM
+  CONFIG_LIBCURL_NTLM \
+  $(if $(CONFIG_LIBCURL_OPENSSL), \
+       CONFIG_OPENSSL_ENGINE \
+       CONFIG_OPENSSL_WITH_COMPRESSION \
+       CONFIG_OPENSSL_WITH_NPN)
 
 include $(INCLUDE_DIR)/package.mk