firefox: don't --enable-debug/--enable-debug-symbols explicitly

This commit is contained in:
Duncaen 2025-02-19 19:25:02 +01:00
parent a824c435d5
commit 4169011c91
No known key found for this signature in database
GPG key ID: 335C1D17EC3D6E35

View file

@ -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 <duncaen@voidlinux.org>"
@ -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"