summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhololeap <hololeap@protonmail.com>2023-11-19 09:37:29 -0700
committerSam James <sam@gentoo.org>2023-11-19 18:32:24 +0000
commitccf74fcd237ce17c4b73dafeeff3a2005f5dfed2 (patch)
tree41dabb1414f23e0c9ea6b873b917ff8d5b6420c9 /dev-lang/ghc
parentdev-lang/ghc: Fix python deps for docs (diff)
downloadgentoo-ccf74fcd237ce17c4b73dafeeff3a2005f5dfed2.tar.gz
gentoo-ccf74fcd237ce17c4b73dafeeff3a2005f5dfed2.tar.bz2
gentoo-ccf74fcd237ce17c4b73dafeeff3a2005f5dfed2.zip
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>
Diffstat (limited to 'dev-lang/ghc')
-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