racket-static/scripts/setup.sh

16 lines
465 B
Bash
Raw Normal View History

2020-10-13 08:37:53 +00:00
#!/bin/sh
set -e
apk upgrade --update-cache --available
apk add alpine-sdk ca-certificates libcrypto1.1 libssl1.1 chrpath libffi-dev libucontext-dev
cd /racket-*/src
export CFLAGS="$CFLAGS -D_GNU_SOURCE"
export LDFLAGS="$LDFLAGS -lucontext"
rm -Rf src/foreign/libffi
./configure --prefix=/usr --sysconfdir=/etc --disable-docs --enable-strip --enable-libs --disable-gracket
make -j $(nproc) CPUS=$(nproc)
make install
raco pkg install --deps search-auto cext-lib