Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Romain Naour <romain.naour@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] package/boost: disable boost-locale for static only build
Date: Sun, 14 May 2017 23:45:56 +0200	[thread overview]
Message-ID: <20170514214556.17980-1-romain.naour@gmail.com> (raw)

boost-locale build system try to link dynamically with icu
see <link>shared and <runtime-link>shared in locale/build/Jamfile.v2
Related to https://svn.boost.org/trac/boost/ticket/9685

Enabling boost-locale for static only build trigger an incompatible
properties combination.

error: Tried to build the target twice, with property sets having
error: these incompatible properties:
error:
error:     -  <runtime-link>static <warnings>all
error:     -  <runtime-link>shared <warnings>on

Fixes:
http://autobuild.buildroot.net/results/c8f/c8f7aa85f5791d8ae8cf4b9085788adc5152286f

Signed-off-by: Romain Naour <romain.naour@gmail.com>
Cc: Yegor Yefremov <yegorslists@googlemail.com>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
 package/boost/Config.in | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/package/boost/Config.in b/package/boost/Config.in
index 9825c09..6ffa8f0 100644
--- a/package/boost/Config.in
+++ b/package/boost/Config.in
@@ -98,8 +98,15 @@ config BR2_PACKAGE_BOOST_IOSTREAMS
 
 config BR2_PACKAGE_BOOST_LOCALE
 	bool "boost-locale"
+	# boost-locale build system try to link dynamically with icu
+	# see <link>shared and <runtime-link>shared in locale/build/Jamfile.v2
+	# Related to https://svn.boost.org/trac/boost/ticket/9685
+	depends on !BR2_STATIC_LIBS
 	select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
 
+comment "boost-locale needs a toolchain w/ dynamic library"
+	depends on BR2_STATIC_LIBS
+
 config BR2_PACKAGE_BOOST_LOG
 	bool "boost-log"
 	depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
-- 
2.9.3

             reply	other threads:[~2017-05-14 21:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-14 21:45 Romain Naour [this message]
2017-05-15  7:15 ` [Buildroot] [PATCH] package/boost: disable boost-locale for static only build Thomas Petazzoni
2017-05-15  8:30   ` Yegor Yefremov
2017-05-15 19:56     ` Romain Naour

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=20170514214556.17980-1-romain.naour@gmail.com \
    --to=romain.naour@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox