Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] cjson: build shared and static library
@ 2017-12-31 16:29 Fabrice Fontaine
  2017-12-31 16:56 ` Thomas Petazzoni
  2018-01-03 21:09 ` Thomas Petazzoni
  0 siblings, 2 replies; 6+ messages in thread
From: Fabrice Fontaine @ 2017-12-31 16:29 UTC (permalink / raw)
  To: buildroot

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))
-- 
2.14.1

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-01-03 21:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-31 16:29 [Buildroot] [PATCH 1/1] cjson: build shared and static library Fabrice Fontaine
2017-12-31 16:56 ` Thomas Petazzoni
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox