From 06eb573d046eb3e3295623a9a235509c9036b249 Mon Sep 17 00:00:00 2001 From: bx Date: Mon, 27 Dec 2021 07:34:42 +0000 Subject: [PATCH] renamed compile-run to pico8-musl --- compile-run.sh | 2 -- pico8-musl.sh | 7 +++++++ 2 files changed, 7 insertions(+), 2 deletions(-) delete mode 100755 compile-run.sh create mode 100755 pico8-musl.sh 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