diff --git a/compile-run.sh b/compile-run.sh deleted file mode 100755 index b4c0e16..0000000 --- a/compile-run.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/bash -gcc -fPIC -shared -o pico8-fill-in.so pico8-fill-in.c && LD_PRELOAD="/usr/lib64/libc.so ./pico8-fill-in.so" ~/pico8/pico8_dyn -windowed 1 diff --git a/pico8-musl.sh b/pico8-musl.sh new file mode 100755 index 0000000..9671c6a --- /dev/null +++ b/pico8-musl.sh @@ -0,0 +1,7 @@ +#!/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