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