From cbc25b01739d99ccfb79e38e950a3c14f4d114fd Mon Sep 17 00:00:00 2001 From: q66 Date: Fri, 10 Jan 2020 17:45:49 +0100 Subject: [PATCH] thrift: use libatomic on ppc32 --- srcpkgs/thrift/template | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/srcpkgs/thrift/template b/srcpkgs/thrift/template index aed293895f..e090df04b4 100644 --- a/srcpkgs/thrift/template +++ b/srcpkgs/thrift/template @@ -11,6 +11,20 @@ homepage="https://thrift.apache.org/" distfiles="http://www-us.apache.org/dist/thrift/${version}/thrift-${version}.tar.gz" checksum=7ad348b88033af46ce49148097afe354d513c1fca7c607b59c33ebb6064b5179 +case "$XBPS_TARGET_MACHINE" in + ppc64*) ;; + ppc*) makedepends+=" libatomic-devel";; +esac + if [ "$CROSS_BUILD" ]; then configure_args="--disable-tests --disable-tutorial" fi + +post_configure() { + case "$XBPS_TARGET_MACHINE" in + ppc64*) ;; + ppc*) + sed -i '/libthrift_la_LIBADD/s/$/ -latomic/' lib/cpp/Makefile + ;; + esac +}