nodejs: use generic libatomic checks

This commit is contained in:
q66 2020-02-08 17:21:03 +01:00
parent b4ca602dff
commit c7dfd26d51

View file

@ -41,17 +41,12 @@ case "$XBPS_TARGET_MACHINE" in
ppc*) broken="Node 12.x does not support 32-bit ppc" ;; ppc*) broken="Node 12.x does not support 32-bit ppc" ;;
esac esac
# v8 requires libatomic on ppc*/s390x/mips* if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
case "$XBPS_TARGET_MACHINE" in makedepends+=" libatomic-devel"
mips*|ppc*) makedepends+=" libatomic-devel" ;; fi
*) ;; if [ "$XBPS_NO_ATOMIC8" ]; then
esac hostmakedepends+=" libatomic-devel"
fi
# also need it on host when it's one of those archs
case "$XBPS_MACHINE" in
mips*|ppc*) hostmakedepends+=" libatomic-devel" ;;
*) ;;
esac
do_configure() { do_configure() {
local _args local _args