From 662412f36887d8d13a0c4883a03f8ac9e353557b Mon Sep 17 00:00:00 2001 From: q66 Date: Sat, 8 Feb 2020 17:20:16 +0100 Subject: [PATCH] mozjs60: use generic libatomic checks --- srcpkgs/mozjs60/template | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/srcpkgs/mozjs60/template b/srcpkgs/mozjs60/template index bedc42ef36..4bf0bbf8e8 100644 --- a/srcpkgs/mozjs60/template +++ b/srcpkgs/mozjs60/template @@ -17,9 +17,10 @@ patch_args="-Np1" CXXFLAGS="-Wno-class-memaccess" LDFLAGS+=" -Wl,-z,stack-size=1048576" -case "$XBPS_TARGET_MACHINE" in - armv[56]*|mips*|ppc|ppc-musl) makedepends+=" libatomic-devel" ; LDFLAGS+=" -latomic" ;; -esac +if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then + makedepends+=" libatomic-devel" + LDFLAGS+=" -latomic" +fi do_configure() { local _args