From 6a93c48d9ef36d67f8a42484e4f87fb4c05ef7fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Tue, 28 Jan 2020 10:42:47 +0100 Subject: [PATCH] tbb: fix build for ppc* --- srcpkgs/tbb/template | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/srcpkgs/tbb/template b/srcpkgs/tbb/template index 8705875175f..165999543ce 100644 --- a/srcpkgs/tbb/template +++ b/srcpkgs/tbb/template @@ -22,6 +22,12 @@ case "$XBPS_TARGET_MACHINE" in aarch64*) make_build_args="arch=arm64" ;; + ppc64*) + make_build_args="arch=ppc64" + ;; + ppc*) + make_build_args="arch=ppc" + ;; esac post_extract() { @@ -30,12 +36,10 @@ post_extract() { # alternative might be: # https://git.alpinelinux.org/cgit/aports/tree/testing/libtbb/glibc-struct-mallinfo.patch - case "$XBPS_TARGET_MACHINE" in - *-musl) - sed -e "s@#define MALLOC_UNIXLIKE_OVERLOAD_ENABLED __linux__@@" \ - -i src/tbbmalloc/proxy.h - ;; - esac + if [ "$XBPS_TARGET_LIBC" = "musl" ]; then + vsed -e "s@#define MALLOC_UNIXLIKE_OVERLOAD_ENABLED __linux__@@" \ + -i src/tbbmalloc/proxy.h + fi } do_install() {