sysprof: fix musl

This commit is contained in:
Enno Boland 2018-03-20 11:25:31 +01:00
parent 0493aac08c
commit 0c50bbbd83
No known key found for this signature in database
GPG key ID: D09964719BDE9971

View file

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