firefox: use generic libatomic checks

This commit is contained in:
q66 2020-02-08 17:15:29 +01:00
parent 8fe4437fe1
commit 10a88d8be4

View file

@ -32,16 +32,15 @@ build_options="alsa jack dbus pulseaudio startup_notification xscreensaver sndio
build_options_default="alsa jack dbus pulseaudio startup_notification xscreensaver sndio wayland"
case $XBPS_TARGET_MACHINE in
armv6*)
broken="required NEON extensions are not supported on armv6"
;;
armv6*) broken="required NEON extensions are not supported on armv6" ;;
ppc64*) ;;
ppc*)
makedepends+=" libatomic-devel"
broken="xptcall bitrot"
;;
ppc*) broken="xptcall bitrot" ;;
esac
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
makedepends+=" libatomic-devel"
fi
# we need this because cargo verifies checksums of all files in vendor
# crates when it builds and gives us no way to override or update the
# file sanely... so just clear out the file list
@ -88,15 +87,15 @@ do_build() {
esac
# webrtc currently fails to build on 32-bit ppc...
# also need explicit libatomic
case "$XBPS_TARGET_MACHINE" in
ppc64*) ;;
ppc*)
echo "ac_add_options --disable-webrtc" >>.mozconfig
export LDFLAGS+=" -latomic"
;;
ppc*) echo "ac_add_options --disable-webrtc" >>.mozconfig ;;
esac
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
export LDFLAGS+=" -latomic"
fi
if [ "$CROSS_BUILD" ]; then
BINDGEN_INCLUDE_FLAGS=$( $CPP -x c++ -v /dev/null -o /dev/null 2>&1 | \
sed -n '/#include <...> search starts here:/,/End of search list./p' | \