diff options
author | Eli Schwartz <eschwartz93@gmail.com> | 2024-03-25 20:27:42 -0400 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-03-26 12:27:27 +0000 |
commit | ef5b901aea056b7cdbbc1a1ba4c3e4a3a43760ed (patch) | |
tree | 25fb6278ff1378bb269d674b95c4298d5dd3e0e4 /games-simulation/micropolis | |
parent | games-sports/speed-dreams: update EAPI 7 -> 8 (diff) | |
download | gentoo-ef5b901aea056b7cdbbc1a1ba4c3e4a3a43760ed.tar.gz gentoo-ef5b901aea056b7cdbbc1a1ba4c3e4a3a43760ed.tar.bz2 gentoo-ef5b901aea056b7cdbbc1a1ba4c3e4a3a43760ed.zip |
games-simulation/micropolis: mark as LTO-unsafe, strict-aliasing unsafe
Closes: https://bugs.gentoo.org/859223
Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'games-simulation/micropolis')
-rw-r--r-- | games-simulation/micropolis/micropolis-1.0_p20220604.ebuild | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/games-simulation/micropolis/micropolis-1.0_p20220604.ebuild b/games-simulation/micropolis/micropolis-1.0_p20220604.ebuild index bee00da41495..bdb9078271dc 100644 --- a/games-simulation/micropolis/micropolis-1.0_p20220604.ebuild +++ b/games-simulation/micropolis/micropolis-1.0_p20220604.ebuild @@ -3,7 +3,7 @@ EAPI=7 -inherit desktop toolchain-funcs wrapper +inherit desktop flag-o-matic toolchain-funcs wrapper COMMIT="6f873e16d6a1a8f6f59c1e5a75ec5f52ce5c89b6" DESCRIPTION="Free version of the well-known city building simulation" @@ -33,6 +33,14 @@ PATCHES=( "${FILESDIR}/micropolis-fix-clang15.diff" ) src_prepare() { default + # -Werror=strict-aliasing + # https://bugs.gentoo.org/859223 + # https://gitlab.com/stargo/micropolis/-/issues/1 + # + # Do not trust with LTO either. + append-flags -fno-strict-aliasing + filter-lto + sed -i -e "s|-O3|${CFLAGS}|" \ src/tclx/config.mk src/{sim,tcl,tk}/makefile || die sed -i -e "s|XLDFLAGS=|&${LDFLAGS}|" \ |