summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz93@gmail.com>2024-03-31 23:25:48 -0400
committerSam James <sam@gentoo.org>2024-04-01 06:29:27 +0100
commitf8d2cf57af0836438d8d2d10cadc38c6283cdd95 (patch)
tree7565a9a442dfa1874c2dd31fbf71c90042fbb85c
parentsci-libs/netcdf-fortran: mark as LTO-unsafe (diff)
downloadgentoo-f8d2cf57af0836438d8d2d10cadc38c6283cdd95.tar.gz
gentoo-f8d2cf57af0836438d8d2d10cadc38c6283cdd95.tar.bz2
gentoo-f8d2cf57af0836438d8d2d10cadc38c6283cdd95.zip
media-libs/ctl: mark as LTO-unsafe, strict-aliasing unsafe
Closes: https://bugs.gentoo.org/926823 Signed-off-by: Eli Schwartz <eschwartz93@gmail.com> Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r--media-libs/ctl/ctl-1.5.2_p20221224.ebuild8
1 files changed, 7 insertions, 1 deletions
diff --git a/media-libs/ctl/ctl-1.5.2_p20221224.ebuild b/media-libs/ctl/ctl-1.5.2_p20221224.ebuild
index 900fd7d7d2a3..bf3bc0cec141 100644
--- a/media-libs/ctl/ctl-1.5.2_p20221224.ebuild
+++ b/media-libs/ctl/ctl-1.5.2_p20221224.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-inherit cmake
+inherit cmake flag-o-matic
MY_COMMIT=3fc4ae7a8af35d380654e573d895216fd5ba407e
@@ -30,6 +30,12 @@ BDEPEND="virtual/pkgconfig"
PATCHES=( "${FILESDIR}"/${PN}-1.5.2-fix-installation-directories.patch )
src_configure() {
+ # -Werror=strict-aliasing
+ # https://bugs.gentoo.org/926823
+ # https://github.com/ampas/CTL/issues/146
+ append-flags -fno-strict-aliasing
+ filter-lto
+
local mycmakeargs=(
-DCMAKE_INSTALL_DOCDIR="share/doc/${PF}"
-DCTL_BUILD_TESTS=$(usex test)