Discussion:
[PATCH 1/4] libc/musl: Remove gcc core pass-1 from musl-libc build
Bryan Hundven
2014-09-04 23:20:23 UTC
Permalink
In an effort to make the toolchain build simpler, remove the need for
the pass-1 build of gcc.

Signed-off-by: Bryan Hundven <***@gmail.com>
---
config/libc/musl.in | 2 +-
scripts/build/libc/musl.sh | 9 +--------
2 files changed, 2 insertions(+), 9 deletions(-)

diff --git a/config/libc/musl.in b/config/libc/musl.in
index b3bec26..8f393b2 100644
--- a/config/libc/musl.in
+++ b/config/libc/musl.in
@@ -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
diff --git a/scripts/build/libc/musl.sh b/scripts/build/libc/musl.sh
index 7172cf2..f997d25 100644
--- a/scripts/build/libc/musl.sh
+++ b/scripts/build/libc/musl.sh
@@ -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() {
--
2.1.0


--
For unsubscribe information see http://sourceware.org/lists.html#faq
Loading...