pico8-musl/pico8-musl.sh

8 lines
245 B
Bash
Executable File

#!/bin/bash
# USAGE: compile-run.sh path-to-your-pico8_dyn-executable
patchelf $1 --set-interpreter /usr/lib64/libc.so
gcc -fPIC -shared -o pico8-fill-in.so pico8-fill-in.c && LD_PRELOAD="/usr/lib64/libc.so ./pico8-fill-in.so" $1 -windowed 1