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/musl.xibuild | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 repo/musl/musl.xibuild (limited to 'repo/musl/musl.xibuild') diff --git a/repo/musl/musl.xibuild b/repo/musl/musl.xibuild new file mode 100644 index 0000000..6f15382 --- /dev/null +++ b/repo/musl/musl.xibuild @@ -0,0 +1,54 @@ +#!/bin/sh + +MAKEDEPS="" +DEPS="" + +PKG_VER=1.2.3 +SOURCE=https://musl.libc.org/releases/musl-$PKG_VER.tar.gz + +ADDITIONAL=" +0001-riscv64-define-ELF_NFPREG.patch +change-scheduler-functions-Linux-compatib.patch +fix-utmp-wtmp-paths.patch +handle-aux-at_base.patch +qsort_r.patch +syscall-cp-epoll.patch +" + +DESC="Implementation of the C standard library built on top of the Linux system call API" + +prepare () { + for p in *.patch; do + patch -Np1 -i $p || true + done +} + +build () { + CARCH=x86_64 + LDFLAGS="$LDFLAGS -Wl,-soname,libc.musl-${CARCH}.so.1" \ +./configure --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --disable-gcc-wrapper + make +} + +package () { + make DESTDIR=$PKG_DEST install && + + install -d $PKG_DEST/etc + install -d $PKG_DEST/bin + install -d $PKG_DEST/lib + + ln -s /lib/ld-musl-x86_64.so.1 $PKG_DEST/bin/ldd + ln -s libc.so $PKG_DEST/usr/lib/libc.musl-x86_64.so.1 + + cat > $PKG_DEST/etc/ld-musl-x86_64.path << "EOF" +/lib +/usr/local/lib +/usr/lib +EOF + + rm $PKG_DEST/usr/include/utmpx.h +} + -- cgit v1.2.1