firefox-esr: enable debug symbols on all archs

[ci skip]
This commit is contained in:
q66 2019-09-16 14:44:40 +02:00 committed by Helmut Pozimski
parent 3aab041536
commit b93ac43001

View file

@ -4,7 +4,7 @@
#
pkgname=firefox-esr
version=68.1.0
revision=1
revision=2
build_helper="rust"
wrksrc="firefox-${version}"
short_desc="Mozilla Firefox web browser - Extended Support Release (ESR)"
@ -30,10 +30,6 @@ conflicts="firefox>=0"
build_options="alsa dbus gtk3 pulseaudio startup_notification xscreensaver sndio"
build_options_default="alsa dbus gtk3 pulseaudio startup_notification xscreensaver sndio"
if [ "$XBPS_WORDSIZE" -eq 32 ]; then
nodebug=yes
fi
case $XBPS_TARGET_MACHINE in
armv6*)
broken="required NEON extensions are not supported on armv6"
@ -112,9 +108,14 @@ do_build() {
;;
esac
if [ "$XBPS_WORDSIZE" -eq 32 ]; then
# ENOMEM
echo "ac_add_options --disable-debug-symbols" >>.mozconfig
# work around large debug symbols on 32-bit hosts
if [ "$XBPS_WORDSIZE" = "32" ]; then
export CFLAGS="${CFLAGS/-g/-g1}"
export CXXFLAGS="${CXXFLAGS/-g/-g1}"
export LDFLAGS+=" -Wl,--no-keep-memory"
# patch the rust debug level, this is hardcoded
sed -i "s/debug_info = '2'/debug_info = '1'/" \
build/moz.configure/toolchain.configure
fi
export LDFLAGS+=" -Wl,-rpath=/usr/lib/firefox"