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() {