LGOGDownloader: use generic libatomic checks

This commit is contained in:
q66 2020-02-08 17:12:34 +01:00
parent f0a1b3c904
commit cf87a285b9

View file

@ -18,12 +18,12 @@ if [ -z "$CROSS_BUILD" ]; then
hostmakedepends+=" help2man"
fi
case "$XBPS_TARGET_MACHINE" in
armv6*|ppc|ppc-musl) makedepends+=" libatomic-devel" # Need libatomic for __atomic_fetch_add_8 etc.
esac
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
makedepends+=" libatomic-devel"
fi
pre_configure() {
case "$XBPS_TARGET_MACHINE" in
armv6*|ppc|ppc-musl) sed -i 's/PRIVATE ${ZLIB_LIBRARIES}/\0\n atomic/' CMakeLists.txt
esac
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
sed -i 's/PRIVATE ${ZLIB_LIBRARIES}/\0\n atomic/' CMakeLists.txt
fi
}