commit:     ab97353e6a4e89c6bba0493e0bf71da5da955991
Author:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
AuthorDate: Tue May  6 18:56:48 2025 +0000
Commit:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
CommitDate: Wed May  7 05:41:05 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ab97353e

dev-libs/boost: mark as LTO-unsafe

quickbook (USE=tools) fails to build, but the rest of boost seems (?) to
be fine.

Closes: https://bugs.gentoo.org/943975
Signed-off-by: Eli Schwartz <eschwartz <AT> gentoo.org>

 dev-libs/boost/boost-1.85.0-r1.ebuild | 6 ++++++
 dev-libs/boost/boost-1.86.0-r1.ebuild | 6 ++++++
 dev-libs/boost/boost-1.87.0-r3.ebuild | 6 ++++++
 dev-libs/boost/boost-1.88.0.ebuild    | 6 ++++++
 4 files changed, 24 insertions(+)

diff --git a/dev-libs/boost/boost-1.85.0-r1.ebuild 
b/dev-libs/boost/boost-1.85.0-r1.ebuild
index b95760e4ddc0..02f7f34b0de9 100644
--- a/dev-libs/boost/boost-1.85.0-r1.ebuild
+++ b/dev-libs/boost/boost-1.85.0-r1.ebuild
@@ -147,6 +147,12 @@ ejam() {
 }
 
 src_configure() {
+       # -Werror=odr
+       # https://bugs.gentoo.org/943975
+       # https://github.com/boostorg/quickbook/issues/27
+       # https://github.com/boostorg/spirit/issues/800
+       use tools && filter-lto
+
        lto-guarantee-fat
 
        # Workaround for too many parallel processes requested, bug #506064

diff --git a/dev-libs/boost/boost-1.86.0-r1.ebuild 
b/dev-libs/boost/boost-1.86.0-r1.ebuild
index eb401298240d..ea874be2c670 100644
--- a/dev-libs/boost/boost-1.86.0-r1.ebuild
+++ b/dev-libs/boost/boost-1.86.0-r1.ebuild
@@ -143,6 +143,12 @@ ejam() {
 }
 
 src_configure() {
+       # -Werror=odr
+       # https://bugs.gentoo.org/943975
+       # https://github.com/boostorg/quickbook/issues/27
+       # https://github.com/boostorg/spirit/issues/800
+       use tools && filter-lto
+
        lto-guarantee-fat
 
        # Workaround for too many parallel processes requested, bug #506064

diff --git a/dev-libs/boost/boost-1.87.0-r3.ebuild 
b/dev-libs/boost/boost-1.87.0-r3.ebuild
index 04a248d64940..596b4ce35526 100644
--- a/dev-libs/boost/boost-1.87.0-r3.ebuild
+++ b/dev-libs/boost/boost-1.87.0-r3.ebuild
@@ -142,6 +142,12 @@ ejam() {
 }
 
 src_configure() {
+       # -Werror=odr
+       # https://bugs.gentoo.org/943975
+       # https://github.com/boostorg/quickbook/issues/27
+       # https://github.com/boostorg/spirit/issues/800
+       use tools && filter-lto
+
        lto-guarantee-fat
 
        # Workaround for too many parallel processes requested, bug #506064

diff --git a/dev-libs/boost/boost-1.88.0.ebuild 
b/dev-libs/boost/boost-1.88.0.ebuild
index 0ae844c1261b..705275155321 100644
--- a/dev-libs/boost/boost-1.88.0.ebuild
+++ b/dev-libs/boost/boost-1.88.0.ebuild
@@ -139,6 +139,12 @@ ejam() {
 }
 
 src_configure() {
+       # -Werror=odr
+       # https://bugs.gentoo.org/943975
+       # https://github.com/boostorg/quickbook/issues/27
+       # https://github.com/boostorg/spirit/issues/800
+       use tools && filter-lto
+
        lto-guarantee-fat
 
        # Workaround for too many parallel processes requested, bug #506064

Reply via email to