From 10a88d8be4b86169e6b1e3f0557c0f4280454670 Mon Sep 17 00:00:00 2001 From: q66 Date: Sat, 8 Feb 2020 17:15:29 +0100 Subject: [PATCH] firefox: use generic libatomic checks --- srcpkgs/firefox/template | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/srcpkgs/firefox/template b/srcpkgs/firefox/template index 04a6bb3f531..2a927015573 100644 --- a/srcpkgs/firefox/template +++ b/srcpkgs/firefox/template @@ -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' | \