From patchwork Thu Sep 4 23:20:25 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan Hundven X-Patchwork-Id: 386045 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 79BEE140088 for ; Fri, 5 Sep 2014 09:20:57 +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:in-reply-to :references; q=dns; s=default; b=bvL3zMQ6c6unpOv6igrG2qp8BwI9qH+ RVWKcZLzjHK+Qz/gDZdWZyP7rzomq/eAMiari0HuARaICmCjz+D6IeW28lIbBMtp vwkITQMGLjiQTs8Lo6unyhE9zNxL9rUqgqgxZD+xHEfdqvKKFIk3raEo8ap7YUhV JkI1r3vesbPI= 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:in-reply-to :references; s=default; bh=rg6gbMO5y8IdQl3osHaUEnIYuL4=; b=LQCA1 MMETBexyqDGQZAbIugzTiZE/xxA1kk8jsU0c20WOWPo1VF6ShJBcd8INTtlxSCUV JBNWUBFyPq9MATWnNC1a5f/hDq6dzs+UuP32SqJ5mxKhUiVi2vo+Gh3yF3J/Ru9V 6KnDYarWbKIljbvvAdCppq/f5fp7VSyB2d+RBs= Received: (qmail 29884 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 29859 invoked by uid 89); 4 Sep 2014 23:20:35 -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-f54.google.com Received: from mail-pa0-f54.google.com (HELO mail-pa0-f54.google.com) (209.85.220.54) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Thu, 04 Sep 2014 23:20:32 +0000 Received: by mail-pa0-f54.google.com with SMTP id fb1so21035753pad.13 for ; Thu, 04 Sep 2014 16:20:31 -0700 (PDT) X-Received: by 10.70.22.163 with SMTP id e3mr13916394pdf.157.1409872831169; Thu, 04 Sep 2014 16:20:31 -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.30 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 04 Sep 2014 16:20:30 -0700 (PDT) From: Bryan Hundven To: "Yann E. MORIN" Cc: crossgcc@sourceware.org, Bryan Hundven Subject: [PATCH 3/4] libc/musl: Add config option for debugging info Date: Thu, 4 Sep 2014 16:20:25 -0700 Message-Id: <1409872826-19507-3-git-send-email-bryanhundven@gmail.com> In-Reply-To: <1409872826-19507-1-git-send-email-bryanhundven@gmail.com> References: <1409872826-19507-1-git-send-email-bryanhundven@gmail.com> X-IsSubscribed: yes This option enables a configuration knob for adding debugging info. Signed-off-by: Bryan Hundven --- config/libc/musl.in.2 | 7 +++++++ scripts/build/libc/musl.sh | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/config/libc/musl.in.2 b/config/libc/musl.in.2 index 96101a0..33a653c 100644 --- a/config/libc/musl.in.2 +++ b/config/libc/musl.in.2 @@ -1,5 +1,12 @@ # musl second-part option +config LIBC_MUSL_DEBUG + bool + prompt "Build with debugging information" + help + This option enables debugging information, this will increase the size of + the resulting library. + choice prompt "How to optimize musl-libc" default LIBC_MUSL_OPTIMIZE_AUTO diff --git a/scripts/build/libc/musl.sh b/scripts/build/libc/musl.sh index 6d77786..0b5b7da 100644 --- a/scripts/build/libc/musl.sh +++ b/scripts/build/libc/musl.sh @@ -46,6 +46,10 @@ do_libc_configure() { extra_cflags+=("-fno-toplevel-reorder") fi + if [ "${CT_LIBC_MUSL_DEBUG}" = "y" ]; then + extra_config+=("--enable-debug") + fi + extra_config+=( "--optimize=${CT_LIBC_MUSL_OPTIMIZE}" ) # NOTE: musl handles the build/host/target a little bit differently