gperftools: disable libunwind on arm*musl.

This commit is contained in:
Christian Neukirchen 2016-10-01 19:23:26 +02:00
parent 7612b6e797
commit eed0fc4d0e

View file

@ -1,7 +1,7 @@
# Template build file for 'gperftools' # Template build file for 'gperftools'
pkgname=gperftools pkgname=gperftools
version=2.5 version=2.5
revision=1 revision=2
build_style=gnu-configure build_style=gnu-configure
short_desc="Multi-threaded malloc() and performance analysis tools" short_desc="Multi-threaded malloc() and performance analysis tools"
maintainer="Enno Boland <gottox@voidlinux.eu>" maintainer="Enno Boland <gottox@voidlinux.eu>"
@ -11,10 +11,15 @@ distfiles="https://github.com/${pkgname}/${pkgname}/releases/download/${pkgname}
checksum=6fa2748f1acdf44d750253e160cf6e2e72571329b42e563b455bde09e9e85173 checksum=6fa2748f1acdf44d750253e160cf6e2e72571329b42e563b455bde09e9e85173
makedepends="libunwind-devel" makedepends="libunwind-devel"
case "$XBPS_TARGET_MACHINE" in
arm*-musl|aarch64-musl)
makedepends=
configure_args="--disable-libunwind"
esac
post_extract() { post_extract() {
sed -i -e 's/__off64_t/off64_t/' \ sed -i -e 's/__off64_t/off64_t/' \
src/base/linux_syscall_support.h src/malloc_hook_mmap_linux.h src/base/linux_syscall_support.h src/malloc_hook_mmap_linux.h
sed -i -e "s/^UNWIND_LIBS = .*/UNWIND_LIBS = -lunwind/" Makefile.in
} }
gperftools-devel_package() { gperftools-devel_package() {