summaryrefslogtreecommitdiff
path: root/x86_64-linux-musl.sh
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2019-05-24 18:00:30 +0200
committerYorhel <git@yorhel.nl>2019-05-24 18:00:30 +0200
commit9474aaa190938cb5de21ec0513192fc462bacb21 (patch)
tree1e509fe7f8696f1d2ae5ff63deffb37cd97e220a /x86_64-linux-musl.sh
parent1adcd9cfe15260b757a8234d67feb18bdbba0668 (diff)
Some improvements + support for a musl-based static build
Diffstat (limited to 'x86_64-linux-musl.sh')
-rwxr-xr-xx86_64-linux-musl.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/x86_64-linux-musl.sh b/x86_64-linux-musl.sh
new file mode 100755
index 0000000..0fb15ab
--- /dev/null
+++ b/x86_64-linux-musl.sh
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+export PATH="/opt/cross/x86_64-linux-musl/bin:$PATH"
+export HOST=x86_64-musl-linux
+export CC=x86_64-linux-musl-gcc
+export AR=x86_64-linux-musl-ar
+export RANLIB=x86_64-linux-musl-ranlib
+export LD=x86_64-linux-musl-ld
+
+export LDFLAGS=-static
+
+exec ./build.sh