Merge pull request #109598 from S-NA/wip/firefox-aarch64-lto

firefox: limit disable-elf-hack to arm, x86{,_64}
This commit is contained in:
Bernardo Meurer 2021-01-17 08:03:35 +00:00 committed by GitHub
commit 9fcf3e5c25
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -296,10 +296,9 @@ buildStdenv.mkDerivation ({
# https://bugzilla.mozilla.org/show_bug.cgi?id=1538724
# elf-hack is broken when using clang+lld:
# https://bugzilla.mozilla.org/show_bug.cgi?id=1482204
++ lib.optionals ltoSupport [
"--enable-lto"
"--disable-elf-hack"
] ++ lib.optional (ltoSupport && !buildStdenv.isDarwin) "--enable-linker=lld"
++ lib.optional ltoSupport "--enable-lto"
++ lib.optional (ltoSupport && (buildStdenv.isAarch32 || buildStdenv.isi686 || buildStdenv.isx86_64)) "--disable-elf-hack"
++ lib.optional (ltoSupport && !buildStdenv.isDarwin) "--enable-linker=lld"
++ flag alsaSupport "alsa"
++ flag pulseaudioSupport "pulseaudio"