rocksdb: use generic libatomic checks

This commit is contained in:
q66 2020-02-08 17:22:42 +01:00
parent ab66f27bdd
commit fa259d22db

View file

@ -13,19 +13,17 @@ homepage="https://github.com/facebook/rocksdb"
distfiles="${homepage}/archive/v${version}.tar.gz"
checksum=7fb6738263d3f2b360d7468cf2ebe333f3109f3ba1ff80115abd145d75287254
case "$XBPS_TARGET_MACHINE" in
armv[56]*|mips*|ppc|ppc-musl) makedepends+=" libatomic-devel";;
esac
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
makedepends+=" libatomic-devel"
fi
# Use the C++17 feature to align new
CXXFLAGS="-faligned-new -Wno-error=deprecated-copy -Wno-error=pessimizing-move"
pre_configure() {
case "$XBPS_TARGET_MACHINE" in
armv[56]*|mips*|ppc|ppc-musl)
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
vsed -i CMakeLists.txt \
-e 's;target_link_libraries(${ROCKSDB_SHARED_LIB};& atomic;'
;;
esac
fi
}
post_install() {