tbb: fix build for ppc*

This commit is contained in:
Jürgen Buchmüller 2020-01-28 10:42:47 +01:00
parent 80a4aaffa5
commit 6a93c48d9e

View file

@ -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__@@" \
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
vsed -e "s@#define MALLOC_UNIXLIKE_OVERLOAD_ENABLED __linux__@@" \
-i src/tbbmalloc/proxy.h
;;
esac
fi
}
do_install() {