From: "Michaël Burtin" <michael.burtin@netgem.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 2/2] libcurl: add libnghttp2 optional dependency
Date: Wed, 18 Jul 2018 10:17:48 +0200 [thread overview]
Message-ID: <20180718081748.13364-2-michael.burtin@netgem.com> (raw)
In-Reply-To: <20180718081748.13364-1-michael.burtin@netgem.com>
The libnghttp2 package has recently been added to buildroot. When
enabled, this adds support for HTTP2 to libcurl.
By default, libcurl configure script will enable HTTP2 if the library
is found using pkg-config. Adding this option makes the build
consistent.
Signed-off-by: Anisse Astier <anisse.astier.ext@netgem.com>
Signed-off-by: Micha?l Burtin <michael.burtin@netgem.com>
---
package/libcurl/libcurl.mk | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/package/libcurl/libcurl.mk b/package/libcurl/libcurl.mk
index c9b325c672..4281d5ed11 100644
--- a/package/libcurl/libcurl.mk
+++ b/package/libcurl/libcurl.mk
@@ -88,6 +88,13 @@ else
LIBCURL_CONF_OPTS += --without-brotli
endif
+ifeq ($(BR2_PACKAGE_LIBNGHTTP2),y)
+LIBCURL_DEPENDENCIES += nghttp2
+LIBCURL_CONF_OPTS += --with-nghttp2
+else
+LIBCURL_CONF_OPTS += --without-nghttp2
+endif
+
define LIBCURL_FIX_DOT_PC
printf 'Requires: openssl\n' >>$(@D)/libcurl.pc.in
endef
--
2.13.6
next prev parent reply other threads:[~2018-07-18 8:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-18 8:17 [Buildroot] [PATCH 1/2] libnghttp2: new package Michaël Burtin
2018-07-18 8:17 ` Michaël Burtin [this message]
2018-07-18 13:36 ` Thomas Petazzoni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180718081748.13364-2-michael.burtin@netgem.com \
--to=michael.burtin@netgem.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox