thrift: use libatomic on ppc32

This commit is contained in:
q66 2020-01-10 17:45:49 +01:00
parent 76cc17458b
commit cbc25b0173
1 changed files with 14 additions and 0 deletions

View File

@ -11,6 +11,20 @@ homepage="https://thrift.apache.org/"
distfiles="http://www-us.apache.org/dist/thrift/${version}/thrift-${version}.tar.gz" distfiles="http://www-us.apache.org/dist/thrift/${version}/thrift-${version}.tar.gz"
checksum=7ad348b88033af46ce49148097afe354d513c1fca7c607b59c33ebb6064b5179 checksum=7ad348b88033af46ce49148097afe354d513c1fca7c607b59c33ebb6064b5179
case "$XBPS_TARGET_MACHINE" in
ppc64*) ;;
ppc*) makedepends+=" libatomic-devel";;
esac
if [ "$CROSS_BUILD" ]; then if [ "$CROSS_BUILD" ]; then
configure_args="--disable-tests --disable-tutorial" configure_args="--disable-tests --disable-tutorial"
fi fi
post_configure() {
case "$XBPS_TARGET_MACHINE" in
ppc64*) ;;
ppc*)
sed -i '/libthrift_la_LIBADD/s/$/ -latomic/' lib/cpp/Makefile
;;
esac
}