From patchwork Thu Sep 4 20:56:55 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan Hundven X-Patchwork-Id: 386014 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 D3F84140183 for ; Fri, 5 Sep 2014 06:57:35 +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=TmEHwXYm2ivjGzbvlYmHZJIQH7bHQnZ KMLtt0ETXhnMceU03kGCtTbTZmTQTE0kQzptFi/Wy7QOwJMH8fMwvjhuz5q6eCnB 8tNyokRv93DVjgxMacQ+r8GF7NsyM7O0tM43oCl2bgUGVCVjHIUA+EQgieLuqnS7 oPoLUjcXkt7Y= 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=aEzW6kajGy4iGqAV3OlLLGJC9ag=; b=b8G26 gwLoMlpi0rF7evQ2RT9rSS+2zM41UCbPkhG1FNMRQBZQBbnv7Ge5gBzpLAn+vB4C T3QGNG2S7moYZV2drwXFDcbuNWGWpZqT7o2lhXgMpKCrtlfYNHarCR9MURaZp5PI rd/I4BSDxX3VzuJLanztBfXNen0S3AmK8iOLUU= Received: (qmail 12351 invoked by alias); 4 Sep 2014 20:57:07 -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 12339 invoked by uid 89); 4 Sep 2014 20:57:07 -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-pd0-f178.google.com Received: from mail-pd0-f178.google.com (HELO mail-pd0-f178.google.com) (209.85.192.178) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Thu, 04 Sep 2014 20:57:06 +0000 Received: by mail-pd0-f178.google.com with SMTP id y13so14367721pdi.23 for ; Thu, 04 Sep 2014 13:57:04 -0700 (PDT) X-Received: by 10.70.101.35 with SMTP id fd3mr12977902pdb.2.1409864224659; Thu, 04 Sep 2014 13:57:04 -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 qk2sm70394pbc.18.2014.09.04.13.57.03 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 04 Sep 2014 13:57:04 -0700 (PDT) From: Bryan Hundven To: "Yann E. MORIN" Cc: crossgcc@sourceware.org, Bryan Hundven Subject: [PATCH 3/5] libc/musl: Add config option for debugging info Date: Thu, 4 Sep 2014 13:56:55 -0700 Message-Id: <1409864217-17035-3-git-send-email-bryanhundven@gmail.com> In-Reply-To: <1409864217-17035-1-git-send-email-bryanhundven@gmail.com> References: <1409864217-17035-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 42f45e1..543cac3 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 bd7ae2a..f2d005e 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_conf+=("--enable-debug") + fi + if [ "${CT_LIBC_MUSL_OPTIMIZE_NONE}" = "y" ]; then extra_conf+=("--optimize=no") elif [ "${CT_LIBC_MUSL_OPTIMIZE_AUTO}" = "y" ]; then