All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/boost: add option to force static build
@ 2022-06-20 11:55 Paul Cercueil
  2022-07-27 15:06 ` Romain Naour
  0 siblings, 1 reply; 5+ messages in thread
From: Paul Cercueil @ 2022-06-20 11:55 UTC (permalink / raw)
  To: buildroot; +Cc: Paul Cercueil

This option can be useful when building for a system that
needs to somewhat maintain compatibility with previously built
software, as Boost is notorious for breaking ABI at every
single release.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
---
 package/boost/Config.in | 11 +++++++++++
 package/boost/boost.mk  |  2 +-
 2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/package/boost/Config.in b/package/boost/Config.in
index b99b01f22e..60eb83ff4c 100644
--- a/package/boost/Config.in
+++ b/package/boost/Config.in
@@ -16,6 +16,17 @@ config BR2_PACKAGE_BOOST
 
 if BR2_PACKAGE_BOOST
 
+config BR2_PACKAGE_BOOST_STATIC
+	bool "Build static libraries"
+	depends on BR2_SHARED_LIBS
+	help
+	  Build static Boost libraries.
+
+	  This option can be useful when building for a system that
+	  needs to somewhat maintain compatibility with previously built
+	  software, as Boost is notorious for breaking ABI at every
+	  single release.
+
 config BR2_PACKAGE_BOOST_ATOMIC
 	bool "boost-atomic"
 	depends on BR2_TOOLCHAIN_SUPPORTS_ALWAYS_LOCKFREE_ATOMIC_INTS
diff --git a/package/boost/boost.mk b/package/boost/boost.mk
index f6e9a03220..162277b968 100644
--- a/package/boost/boost.mk
+++ b/package/boost/boost.mk
@@ -109,7 +109,7 @@ endif
 
 # By default, Boost build and installs both the shared and static
 # variants. Override that if we want static only or shared only.
-ifeq ($(BR2_STATIC_LIBS),y)
+ifeq ($(BR2_STATIC_LIBS)$(BR2_PACKAGE_BOOST_STATIC),y)
 BOOST_OPTS += link=static runtime-link=static
 else ifeq ($(BR2_SHARED_LIBS),y)
 BOOST_OPTS += link=shared runtime-link=shared
-- 
2.35.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

end of thread, other threads:[~2022-07-27 16:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-20 11:55 [Buildroot] [PATCH 1/1] package/boost: add option to force static build Paul Cercueil
2022-07-27 15:06 ` Romain Naour
2022-07-27 15:42   ` Paul Cercueil
2022-07-27 15:57     ` Yann E. MORIN
2022-07-27 16:49       ` Paul Cercueil

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.