diff --git a/srcpkgs/mozjs52/template b/srcpkgs/mozjs52/template index 2dfb586f588..e9cfa4d20b5 100644 --- a/srcpkgs/mozjs52/template +++ b/srcpkgs/mozjs52/template @@ -21,6 +21,10 @@ CXXFLAGS="-fpermissive -fno-delete-null-pointer-checks -fno-tree-vrp -fno-strict # Use BFD linker to avoid erroneous detection of llvm pr8927 with *-musl LDFLAGS="-fuse-ld=bfd" +case "$XBPS_TARGET_MACHINE" in + armv[56]*) makedepends+=" libatomic-devel" ; LDFLAGS+=" -latomic" ;; +esac + do_configure() { local _args