Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/benejson: disable for static-only builds
@ 2015-01-31 22:36 Yann E. MORIN
  2015-02-01 17:56 ` Alex Suykov
  0 siblings, 1 reply; 2+ messages in thread
From: Yann E. MORIN @ 2015-01-31 22:36 UTC (permalink / raw)
  To: buildroot

benejson does not know how to build static-only libraries. as well,
it is not able to build shared-only libs either.

But if shared libs are possible, we can built static ones, so we just
disable benejson for static-only.

Fixes:
    http://autobuild.buildroot.org/results/56a/56a721885c890f3d62bf9e13d712767e66937c51/
    http://autobuild.buildroot.org/results/7c5/7c54dce4801a53bec378b422edfa42dfa990eabe/
    [...]

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/benejson/Config.in | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/package/benejson/Config.in b/package/benejson/Config.in
index cb86d67..dc0081c 100644
--- a/package/benejson/Config.in
+++ b/package/benejson/Config.in
@@ -1,5 +1,7 @@
 config BR2_PACKAGE_BENEJSON
 	bool "benejson"
+	# bnejson does not know how to only build static libs
+	depends on !BR2_STATIC_LIBS
 	depends on BR2_INSTALL_LIBSTDCPP
 	help
 	  benejson is a buffering SAX-style JSON parser library.
-- 
1.9.1

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

* [Buildroot] [PATCH] package/benejson: disable for static-only builds
  2015-01-31 22:36 [Buildroot] [PATCH] package/benejson: disable for static-only builds Yann E. MORIN
@ 2015-02-01 17:56 ` Alex Suykov
  0 siblings, 0 replies; 2+ messages in thread
From: Alex Suykov @ 2015-02-01 17:56 UTC (permalink / raw)
  To: buildroot

Sat, Jan 31, 2015 at 11:36:38PM +0100, Yann E. MORIN wrote:

> benejson does not know how to build static-only libraries. as well,
> it is not able to build shared-only libs either.
Well, actually scons allows specifying targets explicitly.

Benejson is just a small library, so it should not cause much
trouble later. And there's already a similar block with install
commands anyway.


--- a/package/benejson/benejson.mk
+++ b/package/benejson/benejson.mk
@@ -20,10 +20,18 @@ endef
 BENEJSON_POST_PATCH_HOOKS += BENEJSON_DISABLE_WCHAR
 endif
 
+BENEJSON_SCONS_TARGETS = include
+ifeq ($(BR2_STATIC_LIBS)$(BR2_SHARED_STATIC_LIBS),y)
+BENEJSON_SCONS_TARGETS += lib/libbenejson.a
+endif
+ifeq ($(BR2_SHARED_LIBS)$(BR2_SHARED_STATIC_LIBS),y)
+BENEJSON_SCONS_TARGETS += lib/libbenejson.so
+endif
+
 define BENEJSON_BUILD_CMDS
 	(cd $(@D); \
 		$(TARGET_CONFIGURE_OPTS) CROSS=$(TARGET_CROSS) \
-		$(SCONS))
+		$(SCONS) $(BENEJSON_SCONS_TARGETS))
 endef
 
 ifeq ($(BR2_STATIC_LIBS)$(BR2_SHARED_STATIC_LIBS),y)

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

end of thread, other threads:[~2015-02-01 17:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-31 22:36 [Buildroot] [PATCH] package/benejson: disable for static-only builds Yann E. MORIN
2015-02-01 17:56 ` Alex Suykov

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