From 88b1da3a47aeb4502a3115bc542cac2dd8d031c9 Mon Sep 17 00:00:00 2001 From: hazen2215 Date: Wed, 28 Jun 2023 12:38:56 +0900 Subject: [PATCH] shake: fix build on musl --- srcpkgs/shake/template | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/srcpkgs/shake/template b/srcpkgs/shake/template index 08790572f3c4..eccaccd75649 100644 --- a/srcpkgs/shake/template +++ b/srcpkgs/shake/template @@ -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"