commit: 5b99ec7dcfc9b328692bf096135e87698c18213e Author: Eli Schwartz <eschwartz <AT> gentoo <DOT> org> AuthorDate: Thu Jul 3 07:55:44 2025 +0000 Commit: Eli Schwartz <eschwartz <AT> gentoo <DOT> org> CommitDate: Thu Jul 3 07:59:14 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5b99ec7d
app-i18n/librime-lua: mark as LTO-unsafe, strict-aliasing unsafe Closes: https://bugs.gentoo.org/940793 Signed-off-by: Eli Schwartz <eschwartz <AT> gentoo.org> app-i18n/librime-lua/librime-lua-20240819212322-r1.ebuild | 12 +++++++++++- app-i18n/librime-lua/librime-lua-99999999999999.ebuild | 12 +++++++++++- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/app-i18n/librime-lua/librime-lua-20240819212322-r1.ebuild b/app-i18n/librime-lua/librime-lua-20240819212322-r1.ebuild index d103b463fc09..527f47e30050 100644 --- a/app-i18n/librime-lua/librime-lua-20240819212322-r1.ebuild +++ b/app-i18n/librime-lua/librime-lua-20240819212322-r1.ebuild @@ -4,7 +4,7 @@ EAPI="8" LUA_COMPAT=( lua5-{1..4} luajit ) -inherit cmake lua-single +inherit cmake flag-o-matic lua-single if [[ "${PV}" == "99999999999999" ]]; then inherit git-r3 @@ -47,3 +47,13 @@ src_prepare() { cmake_src_prepare } + +src_configure() { + # -Werror=strict-aliasing + # https://bugs.gentoo.org/940793 + # https://github.com/hchunhui/librime-lua/issues/412 + append-flags -fno-strict-aliasing + filter-lto + + cmake_src_configure +} diff --git a/app-i18n/librime-lua/librime-lua-99999999999999.ebuild b/app-i18n/librime-lua/librime-lua-99999999999999.ebuild index 79886c25f087..7fb714fcc7e6 100644 --- a/app-i18n/librime-lua/librime-lua-99999999999999.ebuild +++ b/app-i18n/librime-lua/librime-lua-99999999999999.ebuild @@ -4,7 +4,7 @@ EAPI="8" LUA_COMPAT=( lua5-{1..4} luajit ) -inherit cmake lua-single +inherit cmake flag-o-matic lua-single if [[ "${PV}" == "99999999999999" ]]; then inherit git-r3 @@ -46,3 +46,13 @@ src_prepare() { cmake_src_prepare } + +src_configure() { + # -Werror=strict-aliasing + # https://bugs.gentoo.org/940793 + # https://github.com/hchunhui/librime-lua/issues/412 + append-flags -fno-strict-aliasing + filter-lto + + cmake_src_configure +}
