mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
rocksdb: use generic libatomic checks
This commit is contained in:
parent
ab66f27bdd
commit
fa259d22db
1 changed files with 5 additions and 7 deletions
|
@ -13,19 +13,17 @@ homepage="https://github.com/facebook/rocksdb"
|
||||||
distfiles="${homepage}/archive/v${version}.tar.gz"
|
distfiles="${homepage}/archive/v${version}.tar.gz"
|
||||||
checksum=7fb6738263d3f2b360d7468cf2ebe333f3109f3ba1ff80115abd145d75287254
|
checksum=7fb6738263d3f2b360d7468cf2ebe333f3109f3ba1ff80115abd145d75287254
|
||||||
|
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
|
||||||
armv[56]*|mips*|ppc|ppc-musl) makedepends+=" libatomic-devel";;
|
makedepends+=" libatomic-devel"
|
||||||
esac
|
fi
|
||||||
# Use the C++17 feature to align new
|
# Use the C++17 feature to align new
|
||||||
CXXFLAGS="-faligned-new -Wno-error=deprecated-copy -Wno-error=pessimizing-move"
|
CXXFLAGS="-faligned-new -Wno-error=deprecated-copy -Wno-error=pessimizing-move"
|
||||||
|
|
||||||
pre_configure() {
|
pre_configure() {
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
|
||||||
armv[56]*|mips*|ppc|ppc-musl)
|
|
||||||
vsed -i CMakeLists.txt \
|
vsed -i CMakeLists.txt \
|
||||||
-e 's;target_link_libraries(${ROCKSDB_SHARED_LIB};& atomic;'
|
-e 's;target_link_libraries(${ROCKSDB_SHARED_LIB};& atomic;'
|
||||||
;;
|
fi
|
||||||
esac
|
|
||||||
}
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue