cereal: use $XBPS_TARGET_NO_ATOMIC8

This commit is contained in:
Jürgen Buchmüller 2020-03-30 14:21:30 +02:00
parent ae8b04b7be
commit c64a31ff7d
1 changed files with 5 additions and 7 deletions

View File

@ -12,13 +12,11 @@ homepage="https://uscilab.github.io/cereal"
distfiles="https://github.com/USCiLab/cereal/archive/v${version}.tar.gz"
checksum=329ea3e3130b026c03a4acc50e168e7daff4e6e661bc6a7dfec0d77b570851d5
case "$XBPS_TARGET_MACHINE" in
armv[56]*|ppc|ppc-musl*)
makedepends+=" libatomic-devel"
LDFLAGS+=" -latomic"
configure_args+=" -DCMAKE_CXX_STANDARD_LIBRARIES=-latomic"
;;
esac
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
makedepends+=" libatomic-devel"
LDFLAGS+=" -latomic"
configure_args+=" -DCMAKE_CXX_STANDARD_LIBRARIES=-latomic"
fi
post_install() {
vlicense LICENSE