changeset 1128:d083df2a0727

lib/musl: add preserve and bin/ldd
author David Demelier <markand@malikania.fr>
date Mon, 23 Sep 2019 21:30:00 +0200
parents d3c6aab2de00
children 3767c1eebd0e
files lib/musl/musl.sh
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lib/musl/musl.sh	Mon Sep 23 21:28:00 2019 +0200
+++ b/lib/musl/musl.sh	Mon Sep 23 21:30:00 2019 +0200
@@ -15,6 +15,8 @@
 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 #
 
+# TODO: change x86_64 once we build ARM variants.
+
 PKGNAME=musl
 PKGVERSION=1.1.21
 PKGREVISION=1
@@ -22,6 +24,7 @@
 PKGSUMMARY="a new lightweight, fast, simple, free and correct C library"
 PKGDOWNLOAD="https://www.musl-libc.org/releases/$PKGNAME-$PKGVERSION.tar.gz"
 PKGDEPENDS="linux-headers:build"
+PKGPRESERVE="lib/ld-musl-x86_64.so.1"
 
 : ${CC:=clang}
 : ${CFLAGS:=-O2}
@@ -37,6 +40,8 @@
 	./configure --prefix=
 	make
 	make install DESTDIR=$DESTDIR
+	mkdir -p $DESTDIR/bin
+	ln -sf /lib/ld-musl-x86_64.so.1 $DESTDIR/bin/ldd
 
 	cd ..
 	rm -rf $PKGNAME-$PKGVERSION