summaryrefslogtreecommitdiff
path: root/repo/system/musl/toolchain-musl.xibuild
diff options
context:
space:
mode:
Diffstat (limited to 'repo/system/musl/toolchain-musl.xibuild')
-rw-r--r--repo/system/musl/toolchain-musl.xibuild12
1 files changed, 12 insertions, 0 deletions
diff --git a/repo/system/musl/toolchain-musl.xibuild b/repo/system/musl/toolchain-musl.xibuild
index ed46c6e..4f73171 100644
--- a/repo/system/musl/toolchain-musl.xibuild
+++ b/repo/system/musl/toolchain-musl.xibuild
@@ -12,4 +12,16 @@ build () {
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
+
}