@@ -3,7 +3,7 @@
## depends on ! WINDOWS && ! BARE_METAL
##
## select LIBC_SUPPORT_THREADS_NATIVE
-## select CC_CORE_PASSES_NEEDED
+## select CC_CORE_PASS_2_NEEDED
##
## help Musl is a new standard library to power a new generation of Linux-based
## help devices. musl is lightweight, fast, simple, free, and strives to be
@@ -48,7 +48,7 @@ do_libc_configure() {
# NOTE: musl handles the build/host/target a little bit differently
# then one would expect:
# build : not used
- # host : the machine building musl
+ # host : the machine musl runs on
# target : the machine musl runs on
CT_DoExecLog CFG \
CFLAGS="${extra_cflags[@]}" \
@@ -73,13 +73,6 @@ do_libc_start_files() {
CT_DoLog EXTRA "Installing headers"
CT_DoExecLog ALL make DESTDIR="${CT_SYSROOT_DIR}" install-headers
-
- CT_DoExecLog ALL make DESTDIR="${CT_SYSROOT_DIR}" \
- crt/crt1.o crt/crti.o crt/crtn.o
- CT_DoExecLog ALL cp -av crt/crt*.o "${CT_SYSROOT_DIR}/usr/lib"
- CT_DoExecLog ALL ${CT_TARGET}-gcc -nostdlib \
- -nostartfiles -shared -x c /dev/null -o "${CT_SYSROOT_DIR}/usr/lib/libc.so"
- CT_EndStep
}
do_libc() {
In an effort to make the toolchain build simpler, remove the need for the pass-1 build of gcc. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com> --- config/libc/musl.in | 2 +- scripts/build/libc/musl.sh | 9 +-------- 2 files changed, 2 insertions(+), 9 deletions(-)