summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-08-15 01:53:15 +0100
committerSam James <sam@gentoo.org>2022-08-15 01:56:00 +0100
commit602c311c58d4de57d2cc6ee34219f439b0c5d766 (patch)
tree29302be055632785d2756893e5307808825d04e5 /dev-util
parentprofiles: add openmpi's slurm usedep to package.use.mask (diff)
downloadgentoo-602c311c58d4de57d2cc6ee34219f439b0c5d766.tar.gz
gentoo-602c311c58d4de57d2cc6ee34219f439b0c5d766.tar.bz2
gentoo-602c311c58d4de57d2cc6ee34219f439b0c5d766.zip
dev-util/cmake: filter LTO (ODR)
Closes: https://bugs.gentoo.org/858335 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-util')
-rw-r--r--dev-util/cmake/cmake-3.24.0.ebuild4
-rw-r--r--dev-util/cmake/cmake-9999.ebuild4
2 files changed, 8 insertions, 0 deletions
diff --git a/dev-util/cmake/cmake-3.24.0.ebuild b/dev-util/cmake/cmake-3.24.0.ebuild
index f31888a13431..3b075816e4cf 100644
--- a/dev-util/cmake/cmake-3.24.0.ebuild
+++ b/dev-util/cmake/cmake-3.24.0.ebuild
@@ -192,6 +192,10 @@ src_configure() {
# Fix linking on Solaris
[[ ${CHOST} == *-solaris* ]] && append-ldflags -lsocket -lnsl
+ # ODR warnings, bug #858335
+ # https://gitlab.kitware.com/cmake/cmake/-/issues/20740
+ filter-lto
+
local mycmakeargs=(
-DCMAKE_USE_SYSTEM_LIBRARIES=ON
-DCMAKE_DOC_DIR=/share/doc/${PF}
diff --git a/dev-util/cmake/cmake-9999.ebuild b/dev-util/cmake/cmake-9999.ebuild
index f31888a13431..3b075816e4cf 100644
--- a/dev-util/cmake/cmake-9999.ebuild
+++ b/dev-util/cmake/cmake-9999.ebuild
@@ -192,6 +192,10 @@ src_configure() {
# Fix linking on Solaris
[[ ${CHOST} == *-solaris* ]] && append-ldflags -lsocket -lnsl
+ # ODR warnings, bug #858335
+ # https://gitlab.kitware.com/cmake/cmake/-/issues/20740
+ filter-lto
+
local mycmakeargs=(
-DCMAKE_USE_SYSTEM_LIBRARIES=ON
-DCMAKE_DOC_DIR=/share/doc/${PF}