#!/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