From 0c50bbbd837f38b6441a4edabf512667e8774e0d Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Tue, 20 Mar 2018 11:25:31 +0100 Subject: [PATCH] sysprof: fix musl --- srcpkgs/sysprof/template | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/srcpkgs/sysprof/template b/srcpkgs/sysprof/template index e1d66ab2122..e014e576e30 100644 --- a/srcpkgs/sysprof/template +++ b/srcpkgs/sysprof/template @@ -16,10 +16,15 @@ case "$XBPS_TARGET_MACHINE" in x64_64-musl|aarch64-musl) CFLAGS="-D__WORDSIZE=64" ;; *-musl) CFLAGS="-D__WORDSIZE=32" ;; esac -CFLAGS+=" -Wno-error" +CFLAGS+=" -Wno-error -Wno-error=undef" pre_build() { - export SHELL=/bin/bash + case "$XBPS_TARGET_MACHINE" in + *-musl) + sed '/define SP_CAPTURE_ADDRESS_FORMAT/s/ll/l/' -i lib/capture/sp-capture-types.h + ;; + esac + export SHELL=/bin/bash } post_install() {