From 48ca75555522716f0f686dcae3dd6cf3d8ad714d Mon Sep 17 00:00:00 2001 From: davidovski Date: Tue, 31 May 2022 11:05:19 +0100 Subject: removed idea of repos --- repo/musl/toolchain-musl.xibuild | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 repo/musl/toolchain-musl.xibuild (limited to 'repo/musl/toolchain-musl.xibuild') 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 + +} -- cgit v1.2.1