mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 12:58:16 -07:00
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:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user