summaryrefslogtreecommitdiff
path: root/repo/musl/toolchain-musl.xibuild
diff options
context:
space:
mode:
Diffstat (limited to 'repo/musl/toolchain-musl.xibuild')
-rw-r--r--repo/musl/toolchain-musl.xibuild27
1 files changed, 27 insertions, 0 deletions
diff --git a/repo/musl/toolchain-musl.xibuild b/repo/musl/toolchain-musl.xibuild
new file mode 100644
index 0000000..4f73171
--- /dev/null
+++ b/repo/musl/toolchain-musl.xibuild
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+DESC="$DESC - for xibuild toolchain"
+
+build () {
+ export CXX=clang++
+ export CC=clang
+
+ CC=$CC CXX=$CXX ./configure --prefix=/
+ make
+}
+
+package () {
+ make install DESTDIR=$PKG_DEST
+
+ rm -v $PKG_DEST/lib/ld-musl-x86_64.so.1
+ ln -sv libc.so $PKG_DEST/lib/ld-musl-x86_64.so.1
+
+ mkdir $PKG_DEST/bin
+ mkdir $PKG_DEST/etc
+ ln -sv ../lib/libc.so $PKG_DEST/bin/ldd
+
+ cat > $PKG_DEST/etc/ld-musl-x86_64.path << "EOF"
+$PKG_DEST/lib
+EOF
+
+}