From patchwork Thu Sep 4 23:20:23 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan Hundven X-Patchwork-Id: 386046 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id B87C9140088 for ; Fri, 5 Sep 2014 09:21:11 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id; q=dns; s= default; b=u9WUyc3qOjedyWuwJahrjGX/7gplbBT6pt0pcF+25ScJUiEs2sPcf N0/wnISMCJ2gQNm3lNepkzIHnRdVStGQE/muDboai7W5W5XesSivFDr4S6X2eDHS BWIMamwayPJvOQZkfBfoPv7eHkbBAGbmVtNw6iWfkg+XApLamBKAoM= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id; s=default; bh=dUdK5ZAJWTH2W/o4uHWmbYLYX7c=; b=D261iloILwyZLrIjh55/IQLlldQW siG+cKU69hpU6QTNEnoS02w+JYdTr/1WSUQMjh4GaWiS/KemNoYi9cqyMsMiEdCM sQYY6/nHF5tOOPxdc1eKqChFpla58sp2cnrlPtvLrxVZXlL6BBVa5mz/syI9LwpI FGb6cm413NSYND8= Received: (qmail 29953 invoked by alias); 4 Sep 2014 23:20:36 -0000 Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org Delivered-To: mailing list crossgcc@sourceware.org Received: (qmail 29834 invoked by uid 89); 4 Sep 2014 23:20:34 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-pa0-f43.google.com Received: from mail-pa0-f43.google.com (HELO mail-pa0-f43.google.com) (209.85.220.43) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Thu, 04 Sep 2014 23:20:31 +0000 Received: by mail-pa0-f43.google.com with SMTP id et14so21058700pad.16 for ; Thu, 04 Sep 2014 16:20:29 -0700 (PDT) X-Received: by 10.70.96.74 with SMTP id dq10mr14378248pdb.112.1409872829041; Thu, 04 Sep 2014 16:20:29 -0700 (PDT) Received: from fuzzy.hsd1.wa.comcast.net (c-50-135-131-187.hsd1.wa.comcast.net. [50.135.131.187]) by mx.google.com with ESMTPSA id pd7sm186326pdb.78.2014.09.04.16.20.28 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 04 Sep 2014 16:20:28 -0700 (PDT) From: Bryan Hundven To: "Yann E. MORIN" Cc: crossgcc@sourceware.org, Bryan Hundven Subject: [PATCH 1/4] libc/musl: Remove gcc core pass-1 from musl-libc build Date: Thu, 4 Sep 2014 16:20:23 -0700 Message-Id: <1409872826-19507-1-git-send-email-bryanhundven@gmail.com> X-IsSubscribed: yes In an effort to make the toolchain build simpler, remove the need for the pass-1 build of gcc. Signed-off-by: Bryan Hundven --- 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() {