From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18613 invoked by alias); 5 Sep 2014 06:34:26 -0000 Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org Received: (qmail 18388 invoked by uid 89); 5 Sep 2014 06:34:16 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.5 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-f49.google.com Received: from mail-pa0-f49.google.com (HELO mail-pa0-f49.google.com) (209.85.220.49) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Fri, 05 Sep 2014 06:34:14 +0000 Received: by mail-pa0-f49.google.com with SMTP id kq14so21411666pab.8 for ; Thu, 04 Sep 2014 23:34:13 -0700 (PDT) X-Received: by 10.70.36.162 with SMTP id r2mr17963129pdj.97.1409898853248; Thu, 04 Sep 2014 23:34:13 -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 yx1sm970803pab.5.2014.09.04.23.34.12 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 04 Sep 2014 23:34:12 -0700 (PDT) From: Bryan Hundven To: "Yann E. MORIN" Cc: crossgcc@sourceware.org, Bryan Hundven Subject: [PATCH 4/5] libc/musl: Add config option for extra developer warnings Date: Fri, 05 Sep 2014 06:34:00 -0000 Message-Id: <1409898843-14901-5-git-send-email-bryanhundven@gmail.com> In-Reply-To: <1409898843-14901-1-git-send-email-bryanhundven@gmail.com> References: <1409898843-14901-1-git-send-email-bryanhundven@gmail.com> X-IsSubscribed: yes X-SW-Source: 2014-09/txt/msg00014.txt.bz2 This commit adds a configuration knob for enabling extra developer warnings to be enabled during the musl-libc build. Signed-off-by: Bryan Hundven --- config/libc/musl.in.2 | 6 ++++++ scripts/build/libc/musl.sh | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/config/libc/musl.in.2 b/config/libc/musl.in.2 index 5c265c8..f4abcc4 100644 --- a/config/libc/musl.in.2 +++ b/config/libc/musl.in.2 @@ -7,6 +7,12 @@ config LIBC_MUSL_DEBUG This option enables debugging information, this will increase the size of the resulting library. +config LIBC_MUSL_WARNINGS + bool + prompt "Build with recommended warnings flags" + help + Build musl-libc with extra warnings, useful for musl-libc development. + 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 2690bf2..9aa5dc1 100644 --- a/scripts/build/libc/musl.sh +++ b/scripts/build/libc/musl.sh @@ -50,6 +50,10 @@ do_libc_configure() { extra_config+=("--enable-debug") fi + if [ "${CT_LIBC_MUSL_WARNINGS}" = "y" ]; then + extra_config+=("--enable-warnings") + fi + extra_config+=( "--enable-optimize=${CT_LIBC_MUSL_OPTIMIZE}" ) # NOTE: musl handles the build/host/target a little bit differently -- 2.1.0 -- For unsubscribe information see http://sourceware.org/lists.html#faq