firefox: let LTO on Darwin select its own linker
This commit is contained in:
parent
4f12bddea6
commit
214c833589
1 changed files with 5 additions and 4 deletions
|
@ -253,14 +253,15 @@ buildStdenv.mkDerivation ({
|
||||||
]
|
]
|
||||||
++ lib.optional (buildStdenv.isDarwin) "--disable-xcode-checks"
|
++ lib.optional (buildStdenv.isDarwin) "--disable-xcode-checks"
|
||||||
++ lib.optional (!ltoSupport) "--with-clang-path=${llvmPackages.clang}/bin/clang"
|
++ lib.optional (!ltoSupport) "--with-clang-path=${llvmPackages.clang}/bin/clang"
|
||||||
# LTO is done using clang and lld.
|
# LTO is done using clang and lld on Linux.
|
||||||
|
# Darwin needs to use the default linker as lld is not supported (yet?):
|
||||||
|
# https://bugzilla.mozilla.org/show_bug.cgi?id=1538724
|
||||||
# elf-hack is broken when using clang:
|
# elf-hack is broken when using clang:
|
||||||
# https://bugzilla.mozilla.org/show_bug.cgi?id=1482204
|
# https://bugzilla.mozilla.org/show_bug.cgi?id=1482204
|
||||||
++ lib.optionals ltoSupport [
|
++ lib.optionals ltoSupport [
|
||||||
"--enable-lto"
|
"--enable-lto"
|
||||||
"--enable-linker=lld"
|
|
||||||
"--disable-elf-hack"
|
"--disable-elf-hack"
|
||||||
]
|
] ++ lib.optional (ltoSupport && !buildStdenv.isDarwin) "--enable-linker=lld"
|
||||||
|
|
||||||
++ flag alsaSupport "alsa"
|
++ flag alsaSupport "alsa"
|
||||||
++ flag pulseaudioSupport "pulseaudio"
|
++ flag pulseaudioSupport "pulseaudio"
|
||||||
|
|
Loading…
Reference in a new issue