From 4169011c915a0a4a2e8d7a3bbcc939cbb1551f0f Mon Sep 17 00:00:00 2001 From: Duncaen Date: Wed, 19 Feb 2025 19:25:02 +0100 Subject: [PATCH] firefox: don't --enable-debug/--enable-debug-symbols explicitly --- srcpkgs/firefox/template | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/srcpkgs/firefox/template b/srcpkgs/firefox/template index b8792c0eb3e..bccc46ad910 100644 --- a/srcpkgs/firefox/template +++ b/srcpkgs/firefox/template @@ -4,7 +4,7 @@ # pkgname=firefox version=135.0.1 -revision=1 +revision=2 build_helper="rust" short_desc="Mozilla Firefox web browser" maintainer="Duncaen " @@ -187,14 +187,18 @@ do_build() { ac_add_options $(vopt_enable sndio) ac_add_options --enable-default-toolkit=$(vopt_if wayland 'cairo-gtk3-wayland' 'cairo-gtk3') - ac_add_options $(vopt_enable debug debug) - ac_add_options $(vopt_enable debug debug-symbols) - mk_add_options MOZ_OBJDIR="${wrksrc}/obj" MOZ_APP_REMOTINGNAME=Firefox ! + # XXX: setting --enable-debug/--enable-debug-symbols explicitly + # seems to result in a laggy/crashy firefox. + if [ -z "$build_option_debug" ]; then + echo "ac_add_options --disable-debug-symbols" >>.mozconfig + echo "ac_add_options --disable-debug" >>.mozconfig + fi + # work around large debug symbols on 32-bit hosts if [ "$XBPS_WORDSIZE" = "32" ]; then export LDFLAGS+=" -Wl,--no-keep-memory"