summaryrefslogtreecommitdiff
path: root/repo/system/musl/toolchain-musl.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-05-17 19:10:55 +0100
committerdavidovski <david@davidovski.xyz>2022-05-17 19:10:55 +0100
commit50fb6c032e72a26b3fd881a18e1d1f535c95e0fc (patch)
tree67e7043022f14f601dddd87be911d38a4d58269c /repo/system/musl/toolchain-musl.xibuild
parent213021de0aaf5439db7d58ca1447db4ae6af92be (diff)
fixed packages for llvm based toolchain
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
+
}