squeak: fix build on musl

This commit is contained in:
q66 2020-01-02 18:05:10 +01:00
parent 19a48f1b85
commit 441e1f36f7
1 changed files with 5 additions and 0 deletions

View File

@ -16,6 +16,11 @@ homepage="http://squeakvm.org"
distfiles="http://squeakvm.org/unix/release/Squeak-${version}-src.tar.gz"
checksum=3db6d12ea223e5bc49f52af7f6f832e383a3a006a53bc8a87f6469e1af5dfc2e
# a terrible hack around terrible code
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
CFLAGS+=" -D__NEED_struct__IO_FILE"
fi
post_install() {
vlicense unix/doc/LICENSE
}