cereal: use $XBPS_TARGET_NO_ATOMIC8
This commit is contained in:
parent
ae8b04b7be
commit
c64a31ff7d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue