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