From 0958ca9c41160b7760e4a5d06380f7afd0b2baec Mon Sep 17 00:00:00 2001 From: Andrew Bradford Date: Thu, 12 Oct 2017 13:54:27 -0400 Subject: [PATCH] final-system: Only build shared version of musl We don't need libc.a in our targetfs, it's only needed in the cross-tools as we won't ever run a compiler in the final system. --- BOOK/final-system/common/libc.xml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/BOOK/final-system/common/libc.xml b/BOOK/final-system/common/libc.xml index 665e5be..b7a139b 100644 --- a/BOOK/final-system/common/libc.xml +++ b/BOOK/final-system/common/libc.xml @@ -22,7 +22,8 @@ the basic routines for allocating memory, searching directories, opening and closing files, reading and writing files, string handling, pattern matching, arithmetic, and so on. We build it again here so that it can be installed - into our targetfs sysroot. + into our targetfs sysroot but this time we only build the shared object + version. @@ -34,6 +35,7 @@ ./configure \ CROSS_COMPILE=${CLFS_TARGET}- \ --prefix=/ \ + --disable-static \ --target=${CLFS_TARGET} Compile the package: