fill in functions so you can run pico8 on musl C
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
bx 689307ef9e added test.c 2 weeks ago
.gitignore added git ignore 9 months ago
README.txt added readme 9 months ago
fillin.c commented out some debug prints 9 months ago renamed pico8-fill-in to fillin 9 months ago
test.c added test.c 2 weeks ago


~ pico8 musl c ~

gur programs and scripts here aim to fill in for missing glibc functions that pico8 needs,
my main usecase is running on musl void linux x64, so i havent tested on anything else :P

if you use / test it on any other setup feedback would be appreciated

oh, there's also a strong chance this might cause memory leaks / stack corruption here and
there, but i've been using it for quite a while and havent noticed any unusual crashes yet.

~ how to use / how it works ~

first make sure you have patchelf installed

then run `./ PATH-TO-YOUR-pico8_dyn-EXE`, this will compile gur fillin code
patch pico8's elf file so that it uses gur correct dynamic linker and then set gur
LD_PRELOAD enviroment variable to include both muslc and gur fillin

LD_PRELOAD lets us insert out own funcitons along side those provided by musl, gur fillin
provides enough functions for pico8 to run, its not a full stand in for glibc