From 0219dbd47580ae5f709c8763b9555379d863d0a5 Mon Sep 17 00:00:00 2001 From: Mike Lowis Date: Wed, 21 Sep 2016 09:20:18 -0400 Subject: [PATCH] Added bootstrap script for building a statically-linked musl-based cross compiler --- .gitignore | 3 +++ bootstrap.sh | 14 ++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 .gitignore create mode 100755 bootstrap.sh diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..33ae8121 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +tags +cscope.out +project.vim diff --git a/bootstrap.sh b/bootstrap.sh new file mode 100755 index 00000000..0098b220 --- /dev/null +++ b/bootstrap.sh @@ -0,0 +1,14 @@ +#!/bin/sh +if [ ! -d musl-cross-make/stage1 ]; then + cd musl-cross-make + cp stage1.mak config.mak + make all install + make clean +fi +if [ ! -d musl-cross-make/stage2 ]; then + cd musl-cross-make + cp stage2.mak config.mak + export PATH="$PWD/stage1/bin:$PATH" + make all install + make clean +fi -- 2.54.0