firefox-esr: use nodebug based on wordsize, also broken on ppc32

This commit is contained in:
q66 2019-08-13 17:22:52 +02:00 committed by Johannes
parent f737d40239
commit 92c67bf51d

View file

@ -30,17 +30,18 @@ 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"
;; ;;
i686*) ppc64*) ;;
# /usr/bin/ld: failed to set dynamic section sizes: memory exhausted ppc*) broken="ftbfs in several places" ;;
nodebug=yes
;;
esac esac
post_extract() { post_extract() {
case "$XBPS_TARGET_MACHINE" in case "$XBPS_TARGET_MACHINE" in
*-musl) *-musl)
@ -111,12 +112,10 @@ do_build() {
;; ;;
esac esac
case "$XBPS_MACHINE" in if [ "$XBPS_WORDSIZE" -eq 32 ]; then
i686*)
# ENOMEM # ENOMEM
echo "ac_add_options --disable-debug-symbols" >>.mozconfig echo "ac_add_options --disable-debug-symbols" >>.mozconfig
;; fi
esac
export LDFLAGS+=" -Wl,-rpath=/usr/lib/firefox" export LDFLAGS+=" -Wl,-rpath=/usr/lib/firefox"