From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2] lz4: improve static only build support
Date: Fri, 20 Apr 2018 08:41:43 +0200 [thread overview]
Message-ID: <20180420084143.3b20bd3a@windsurf.numericable.fr> (raw)
In-Reply-To: <e5fee55fc78a363b247f0eb8594aa9f40d3a1526.1524199966.git.baruch@tkos.co.il>
Hello,
On Fri, 20 Apr 2018 07:52:46 +0300, Baruch Siach wrote:
> The current method of supporting static only build, removal of all lines
> that match the SHARED regex from lib/Makefile, is crude and fragile.
> Instead, patch lib/Makefile to allow disable of shared libraries.
>
> Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Thanks for the new version, I've applied, but I have one question below.
> ---
> v2: Leave DESTDIR and PREFIX alone (Thomas P)
> ---
> ...ib-allow-to-disable-shared-libraries.patch | 59 +++++++++++++++++++
> package/lz4/lz4.mk | 12 ++--
> 2 files changed, 64 insertions(+), 7 deletions(-)
> create mode 100644 package/lz4/0002-lib-allow-to-disable-shared-libraries.patch
>
> diff --git a/package/lz4/0002-lib-allow-to-disable-shared-libraries.patch b/package/lz4/0002-lib-allow-to-disable-shared-libraries.patch
> new file mode 100644
> index 000000000000..4f89e85577b3
> --- /dev/null
> +++ b/package/lz4/0002-lib-allow-to-disable-shared-libraries.patch
> @@ -0,0 +1,59 @@
> +From 95bde2a4ae4a92e984a5783ca1f09f44bf04fadb Mon Sep 17 00:00:00 2001
> +From: Baruch Siach <baruch@tkos.co.il>
> +Date: Thu, 19 Apr 2018 12:28:11 +0300
> +Subject: [PATCH] lib: allow to disable shared libraries
> +
> +Just like BUILD_STATIC=no disables static libraries, BUILD_SHARED=no
> +disabled shared libraries. This is useful to support toolchains that do
> +not support shared libraries.
Why aren't we using BUILD_STATIC=no when BR2_SHARED_LIBS=y, to disable
the build of the static library ?
Admittedly, it isn't a huge improvement, but for consistency it would
be good to do that.
Thanks again,
Thomas
--
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com
next prev parent reply other threads:[~2018-04-20 6:41 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-20 4:52 [Buildroot] [PATCH v2] lz4: improve static only build support Baruch Siach
2018-04-20 6:41 ` Thomas Petazzoni [this message]
2018-04-21 21:05 ` Baruch Siach
2018-04-22 8:28 ` Thomas Petazzoni
2018-04-21 12:45 ` Thomas Petazzoni
2018-04-21 20:50 ` Baruch Siach
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=20180420084143.3b20bd3a@windsurf.numericable.fr \
--to=thomas.petazzoni@bootlin.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 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.