RandomX: use generic libatomic checks

This commit is contained in:
q66 2020-02-08 17:12:48 +01:00
parent cf87a285b9
commit 9fdda4275b

View file

@ -10,13 +10,10 @@ homepage="https://github.com/tevador/RandomX"
distfiles="https://github.com/tevador/RandomX/archive/v${version}.tar.gz"
checksum=31741ede58267c84c1223370a4d18e32fad26a9652371d36da7e45c0c584ae1a
case $XBPS_TARGET_MACHINE in
ppc64*) ;;
arm*|aarch64*|ppc*)
CFLAGS="-Wl,-latomic"
makedepends="libatomic-devel"
;;
esac
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
CFLAGS+=" -Wl,-latomic"
makedepends="libatomic-devel"
fi
post_install() {
vlicense LICENSE