uhd: needs 128-bit atomics, so use libatomic on ppc64 too

This commit is contained in:
q66 2020-12-27 19:18:11 +01:00
parent 4620d3829b
commit 3ceed4624b
1 changed files with 11 additions and 0 deletions

View File

@ -20,7 +20,18 @@ case "${XBPS_TARGET_MACHINE}" in
arm*) configure_args+=" -DNEON_SIMD_ENABLE=OFF"
esac
_use_libatomic=no
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
_use_libatomic=yes
else
# 128-bit atomics
case "$XBPS_TARGET_MACHINE" in
ppc*) _use_libatomic=yes ;;
esac
fi
if [ "$_use_libatomic" = "yes" ]; then
makedepends+=" libatomic-devel"
configure_args+=" -DCMAKE_CXX_STANDARD_LIBRARIES=-latomic"
fi