From d8bfe538958df7b48998ed817947abfaa9e0012c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20W=C3=B3jcik?= Date: Fri, 25 Sep 2020 21:27:48 +0200 Subject: [PATCH] README.md: update instructions of building for other libc --- README.md | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index fe85e3f20eb..9238b1918ef 100644 --- a/README.md +++ b/README.md @@ -484,24 +484,14 @@ The second mode (native) needs a new x86 `masterdir`: ### Building packages natively for the musl C library -A native build environment is required to be able to cross compile the bootstrap packages for the musl C library; this is accomplished by installing them via `binary-bootstrap`: - - $ ./xbps-src binary-bootstrap - -Now cross compile `base-chroot-musl` for your native architecture: - - $ ./xbps-src -a x86_64-musl pkg base-chroot-musl - -Wait until all packages are built and when ready, prepare a new masterdir with the musl packages: +Canonical way of building packages for same architecture but different C library is through dedicated masterdir. +To build for x86_64-musl on glibc x86_64 system, prepare a new masterdir with the musl packages: $ ./xbps-src -m masterdir-x86_64-musl binary-bootstrap x86_64-musl -Your new masterdir is now ready to build packages natively for the musl C library. Try: - - $ ./xbps-src -m masterdir-x86_64-musl chroot - $ ldd +Your new masterdir is now ready to build packages natively for the musl C library: -To see if the musl C dynamic linker is working as expected. + $ ./xbps-src -m masterdir-x86_64-musl pkg ... ### Building void base-system from scratch