shake: fix build on musl

Closes: #44674 [via git-merge-pr]
This commit is contained in:
hazen2215 2023-06-28 12:38:56 +09:00 committed by Duncaen
parent 96d766f122
commit bfbfa1bed7
No known key found for this signature in database
GPG Key ID: 335C1D17EC3D6E35

View File

@ -12,11 +12,11 @@ homepage="http://vleu.net/shake/"
distfiles="https://github.com/unbrice/$pkgname/archive/v$version.tar.gz"
checksum=ac5a57bd8d55e197734852bf66318ecf39b4c5c298e43a259ba1d8a4b7a2ced3
case "$XBPS_TARGET_MACHINE" in
*-musl)
broken="musl does not provide error.h required by this package"
;;
esac
CFLAGS="-D_GNU_SOURCE"
if [ "$XBPS_TARGET_LIBC" = musl ]; then
makedepends+=" musl-legacy-compat"
fi
if [ -n "$CROSS_BUILD" ]; then
hostmakedepends+=" shake"