dev-lang/ghc: Filter LTO flags

LTO does not seem to be supported upstream. Add 'filter-lto' and
'append-flags -fno-strict-aliasing' to src_configure.

See: http://brandon.si/code/initial-hacking-of-ghc-for-gcc-link-time-optimization/
Closes: https://bugs.gentoo.org/855596
Signed-off-by: hololeap <hololeap@protonmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
hololeap
2023-11-19 09:37:29 -07:00
committed by Sam James
parent 9dd4edd989
commit ccf74fcd23
2 changed files with 8 additions and 0 deletions

View File

@@ -645,6 +645,10 @@ src_prepare() {
src_configure() {
if ! use binary; then
# No upstream LTO support. bug #855596
filter-lto
append-flags -fno-strict-aliasing
# initialize build.mk
echo '# Gentoo changes' > mk/build.mk

View File

@@ -693,6 +693,10 @@ src_prepare() {
src_configure() {
if ! use binary; then
# No upstream LTO support. bug #855596
filter-lto
append-flags -fno-strict-aliasing
# initialize build.mk
echo '# Gentoo changes' > mk/build.mk