From e42983169e67b3270ce56db484cef617980867cc Mon Sep 17 00:00:00 2001 From: Phantop Date: Mon, 28 Mar 2022 12:32:45 -0400 Subject: [PATCH] add musl native gcc toolchain --- apps/mkmusl | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 apps/mkmusl diff --git a/apps/mkmusl b/apps/mkmusl new file mode 100755 index 0000000..995d63e --- /dev/null +++ b/apps/mkmusl @@ -0,0 +1,19 @@ +#!/bin/bash +PATH=$(dirname "$(readlink -f "${0}")")/..:$PATH +DIR=/tmp/appdwarf +mkdir -p $DIR +curl http://musl.cc/x86_64-linux-musl-native.tgz | tar xz -C$DIR +mv $DIR/x86_64-linux-musl-native $DIR/musl +ln -s gcc $DIR/musl/bin/cc + +cat > $DIR/musl/AppRun << 'EOF' +#!/bin/sh +HERE=$(dirname $(readlink -f "${0}")) +export PATH="${HERE}/bin":$PATH +"$@" +EOF +chmod +x $DIR/musl/AppRun + +appdwarf $DIR/musl +mv $DIR/musl.sh musl +rm -rf $DIR/musl