monero: use generic libatomic checks
This commit is contained in:
parent
949f6ebf52
commit
fb92ec2359
1 changed files with 18 additions and 31 deletions
|
@ -33,34 +33,22 @@ if [ "$CROSS_BUILD" ]; then
|
|||
fi
|
||||
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
armv7*) configure_args+=" -DARCH=armv7"
|
||||
;;
|
||||
armv6*) configure_args+=" -DARCH=armv6"
|
||||
makedepends+=" libatomic-devel"
|
||||
CFLAGS+=" -latomic"
|
||||
;;
|
||||
armv5*) configure_args+=" -DARCH=armv5"
|
||||
makedepends+=" libatomic-devel"
|
||||
CFLAGS+=" -latomic"
|
||||
;;
|
||||
aarch64*) configure_args+=" -DARCH=aarch64"
|
||||
;;
|
||||
mips*) configure_args+=" -DARCH=mipsr32 -DNO_AES=ON"
|
||||
makedepends+=" libatomic-devel"
|
||||
CFLAGS+=" -latomic"
|
||||
;;
|
||||
ppc64le*) configure_args+=" -DARCH=ppc64le"
|
||||
;;
|
||||
ppc64*) configure_args+=" -DARCH=ppc64"
|
||||
;;
|
||||
ppc*) configure_arch+=" -DARCH=ppc"
|
||||
makedepends+=" libatomic-devel"
|
||||
CFLAGS+=" -latomic"
|
||||
;;
|
||||
*) configure_args+=" -DARCH=default"
|
||||
;;
|
||||
armv7*) configure_args+=" -DARCH=armv7" ;;
|
||||
armv6*) configure_args+=" -DARCH=armv6" ;;
|
||||
armv5*) configure_args+=" -DARCH=armv5" ;;
|
||||
aarch64*) configure_args+=" -DARCH=aarch64" ;;
|
||||
mips*) configure_args+=" -DARCH=mipsr32 -DNO_AES=ON" ;;
|
||||
ppc64le*) configure_args+=" -DARCH=ppc64le" ;;
|
||||
ppc64*) configure_args+=" -DARCH=ppc64" ;;
|
||||
ppc*) configure_arch+=" -DARCH=ppc" ;;
|
||||
*) configure_args+=" -DARCH=default" ;;
|
||||
esac
|
||||
|
||||
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
|
||||
makedepends+=" libatomic-devel"
|
||||
CFLAGS+=" -latomic"
|
||||
fi
|
||||
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
*-musl) configure_args+=" -DSTACK_TRACE=OFF"
|
||||
esac
|
||||
|
@ -73,11 +61,10 @@ post_extract() {
|
|||
}
|
||||
|
||||
pre_configure() {
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
armv[56]*|mips*) sed -i CMakeLists.txt \
|
||||
-e '/include(version.cmake)/i list(APPEND EXTRA_LIBRARIES libatomic.a)'
|
||||
;;
|
||||
esac
|
||||
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
|
||||
sed -i CMakeLists.txt -e \
|
||||
'/include(version.cmake)/i list(APPEND EXTRA_LIBRARIES libatomic.a)'
|
||||
fi
|
||||
}
|
||||
|
||||
pre_build() {
|
||||
|
|
Loading…
Reference in a new issue