firefox-esr: enable debug symbols on all archs
[ci skip]
This commit is contained in:
parent
3aab041536
commit
b93ac43001
1 changed files with 9 additions and 8 deletions
|
@ -4,7 +4,7 @@
|
||||||
#
|
#
|
||||||
pkgname=firefox-esr
|
pkgname=firefox-esr
|
||||||
version=68.1.0
|
version=68.1.0
|
||||||
revision=1
|
revision=2
|
||||||
build_helper="rust"
|
build_helper="rust"
|
||||||
wrksrc="firefox-${version}"
|
wrksrc="firefox-${version}"
|
||||||
short_desc="Mozilla Firefox web browser - Extended Support Release (ESR)"
|
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="alsa dbus gtk3 pulseaudio startup_notification xscreensaver sndio"
|
||||||
build_options_default="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
|
case $XBPS_TARGET_MACHINE in
|
||||||
armv6*)
|
armv6*)
|
||||||
broken="required NEON extensions are not supported on armv6"
|
broken="required NEON extensions are not supported on armv6"
|
||||||
|
@ -112,9 +108,14 @@ do_build() {
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [ "$XBPS_WORDSIZE" -eq 32 ]; then
|
# work around large debug symbols on 32-bit hosts
|
||||||
# ENOMEM
|
if [ "$XBPS_WORDSIZE" = "32" ]; then
|
||||||
echo "ac_add_options --disable-debug-symbols" >>.mozconfig
|
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
|
fi
|
||||||
|
|
||||||
export LDFLAGS+=" -Wl,-rpath=/usr/lib/firefox"
|
export LDFLAGS+=" -Wl,-rpath=/usr/lib/firefox"
|
||||||
|
|
Loading…
Reference in a new issue