diff --git a/recipes/firefox.toml b/recipes/firefox.toml index 300c83b0..4863b47d 100644 --- a/recipes/firefox.toml +++ b/recipes/firefox.toml @@ -48,7 +48,17 @@ # --disable-crashreporter manda telemetría a Mozilla; además pide breakpad. # --disable-updater la distro actualiza por hammer, no por un updater propio. # --disable-tests no entran al artefacto. -# --enable-linker=lld zig ES lld; pedir bfd/gold sería pedir algo que no hay. +# (SIN --enable-linker) Alpine pone `--enable-linker=lld` y acá NO se puede, aunque zig +# use lld por dentro. `toolchain.configure` sondea el linker con +# `$CC -fuse-ld=lld -Wl,--version` y clasifica por la SALIDA: busca +# «mold», «GNU ld», «GNU gold» o «LLD». zig se identifica como +# **`zig ld 0.16.0`**, que no casa con ninguno ⇒ `kind = "unknown"`. +# Eso solo no rompe (el código acepta «unknown»), pero **pedir el +# linker por nombre vuelve FATAL cualquier fallo del sondeo**: +# `if linker: … if result is None: die("Could not use lld as +# linker")`. Sin el flag, Firefox prueba lld igual unas líneas más +# abajo y, si el sondeo falla, sigue a gold y al linker por defecto +# — que es justamente el lld que zig trae. Mismo linker, sin el die. name = "firefox" version = "154.0" license = "MPL-2.0" @@ -105,7 +115,6 @@ ac_add_options --enable-application=browser ac_add_options --enable-default-toolkit=cairo-gtk3-wayland ac_add_options --enable-release ac_add_options --enable-optimize -ac_add_options --enable-linker=lld ac_add_options --enable-hardening ac_add_options --with-branding=browser/branding/unofficial ac_add_options --with-libclang-path=/usr/lib