summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-lang')
-rw-r--r--dev-lang/ghc/ghc-9.0.2-r4.ebuild4
-rw-r--r--dev-lang/ghc/ghc-9.2.8.ebuild4
2 files changed, 8 insertions, 0 deletions
diff --git a/dev-lang/ghc/ghc-9.0.2-r4.ebuild b/dev-lang/ghc/ghc-9.0.2-r4.ebuild
index b05739eb215f..a02446080d36 100644
--- a/dev-lang/ghc/ghc-9.0.2-r4.ebuild
+++ b/dev-lang/ghc/ghc-9.0.2-r4.ebuild
@@ -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
diff --git a/dev-lang/ghc/ghc-9.2.8.ebuild b/dev-lang/ghc/ghc-9.2.8.ebuild
index d6fbae083399..2b6f84b93c7f 100644
--- a/dev-lang/ghc/ghc-9.2.8.ebuild
+++ b/dev-lang/ghc/ghc-9.2.8.ebuild
@@ -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