From: Baruch Siach <baruch@tkos.co.il>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] gnutls: use included unistring unless libunistring is selected
Date: Fri, 15 Jun 2018 11:57:04 +0300 [thread overview]
Message-ID: <20180615085704.u3mjlz3h325wqhhs@tarshish> (raw)
In-Reply-To: <20180615084838.7642-1-neumann@teufel.de>
Hi Sven,
On Fri, Jun 15, 2018 at 10:48:38AM +0200, Sven Neumann wrote:
> Use the included copy of libunistring unless BR2_PACKAGE_LIBUNISTRING
> is already selected.
>
> The resulting gnutls library with libunistring included is about 1.2 MB
> smaller than the sum of libgnutls and libunistring.
>
> Signed-off-by: Sven Neumann <neumann@teufel.de>
> ---
> package/gnutls/Config.in | 1 -
> package/gnutls/gnutls.mk | 10 ++++++++--
> 2 files changed, 8 insertions(+), 3 deletions(-)
>
> diff --git a/package/gnutls/Config.in b/package/gnutls/Config.in
> index cfb7cb3f3b..998e213c7d 100644
> --- a/package/gnutls/Config.in
> +++ b/package/gnutls/Config.in
> @@ -1,7 +1,6 @@
> config BR2_PACKAGE_GNUTLS
> bool "gnutls"
> select BR2_PACKAGE_LIBTASN1
> - select BR2_PACKAGE_LIBUNISTRING
> select BR2_PACKAGE_NETTLE
> select BR2_PACKAGE_PCRE
> depends on BR2_USE_WCHAR
Is it possible now to remove the BR2_USE_WCHAR dependency of gnutls?
baruch
> diff --git a/package/gnutls/gnutls.mk b/package/gnutls/gnutls.mk
> index be1cf00e06..7d8071c824 100644
> --- a/package/gnutls/gnutls.mk
> +++ b/package/gnutls/gnutls.mk
> @@ -10,7 +10,7 @@ GNUTLS_SOURCE = gnutls-$(GNUTLS_VERSION).tar.xz
> GNUTLS_SITE = ftp://ftp.gnutls.org/gcrypt/gnutls/v$(GNUTLS_VERSION_MAJOR)
> GNUTLS_LICENSE = LGPLv2.1+ (core library), GPLv3+ (gnutls-openssl library)
> GNUTLS_LICENSE_FILES = doc/COPYING doc/COPYING.LESSER
> -GNUTLS_DEPENDENCIES = host-pkgconf libunistring libtasn1 nettle pcre
> +GNUTLS_DEPENDENCIES = host-pkgconf libtasn1 nettle pcre
> GNUTLS_CONF_OPTS = \
> --disable-doc \
> --disable-guile \
> @@ -19,7 +19,6 @@ GNUTLS_CONF_OPTS = \
> --enable-local-libopts \
> --enable-openssl-compatibility \
> --with-libnettle-prefix=$(STAGING_DIR)/usr \
> - --with-libunistring-prefix=$(STAGING_DIR)/usr \
> --with-librt-prefix=$(STAGING_DIR) \
> --without-tpm \
> $(if $(BR2_PACKAGE_GNUTLS_TOOLS),--enable-tools,--disable-tools)
> @@ -75,6 +74,13 @@ else
> GNUTLS_CONF_OPTS += --without-p11-kit
> endif
>
> +ifeq ($(BR2_PACKAGE_LIBUNISTRING),y)
> +GNUTLS_CONF_OPTS += --with-libunistring-prefix=$(STAGING_DIR)/usr
> +GNUTLS_DEPENDENCIES += libunistring
> +else
> +GNUTLS_CONF_OPTS += --with-included-unistring
> +endif
> +
> ifeq ($(BR2_PACKAGE_ZLIB),y)
> GNUTLS_CONF_OPTS += --with-zlib
> GNUTLS_DEPENDENCIES += zlib
--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
next prev parent reply other threads:[~2018-06-15 8:57 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-15 8:48 [Buildroot] [PATCH] gnutls: use included unistring unless libunistring is selected Sven Neumann
2018-06-15 8:57 ` Baruch Siach [this message]
2018-06-17 12:24 ` Thomas Petazzoni
2018-06-17 12:17 ` 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=20180615085704.u3mjlz3h325wqhhs@tarshish \
--to=baruch@tkos.co.il \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.