From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/1] cjson: build shared and static library
Date: Sun, 31 Dec 2017 17:56:21 +0100 [thread overview]
Message-ID: <20171231175621.44c67b85@windsurf> (raw)
In-Reply-To: <20171231162933.19446-1-fontaine.fabrice@gmail.com>
Hello,
On Sun, 31 Dec 2017 17:29:33 +0100, Fabrice Fontaine wrote:
> cjson 1.6.0 added the BUILD_SHARED_AND_STATIC_LIBS option which is OFF
> by default so set it depending on BR2_SHARED_STATIC_LIBS value
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
> package/cjson/cjson.mk | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/package/cjson/cjson.mk b/package/cjson/cjson.mk
> index f3ef7fd2ac..aabf3677ea 100644
> --- a/package/cjson/cjson.mk
> +++ b/package/cjson/cjson.mk
> @@ -15,4 +15,10 @@ CJSON_CONF_OPTS += \
> -DENABLE_CJSON_TEST=OFF \
> -DENABLE_CUSTOM_COMPILER_FLAGS=OFF
>
> +ifeq ($(BR2_SHARED_STATIC_LIBS),y)
> +CJSON_CONF_OPTS += -DBUILD_SHARED_AND_STATIC_LIBS=ON
> +else
> +CJSON_CONF_OPTS += -DBUILD_SHARED_AND_STATIC_LIBS=OFF
> +endif
> +
> $(eval $(cmake-package))
How is BR2_STATIC_LIBS=y handled ?
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
next prev parent reply other threads:[~2017-12-31 16:56 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-31 16:29 [Buildroot] [PATCH 1/1] cjson: build shared and static library Fabrice Fontaine
2017-12-31 16:56 ` Thomas Petazzoni [this message]
2017-12-31 17:19 ` Fabrice Fontaine
2018-01-01 11:04 ` Thomas Petazzoni
2018-01-01 20:16 ` Fabrice Fontaine
2018-01-03 21:09 ` 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=20171231175621.44c67b85@windsurf \
--to=thomas.petazzoni@free-electrons.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.