public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
From: "Yann E. MORIN" <yann.morin.1998@free.fr>
To: Bryan Hundven <bryanhundven@gmail.com>
Cc: crossgcc@sourceware.org
Subject: Re: [PATCH 3/5] libc/musl: Add config option for debugging info
Date: Thu, 04 Sep 2014 22:35:00 -0000	[thread overview]
Message-ID: <20140904223521.GD3945@free.fr> (raw)
In-Reply-To: <1409864217-17035-3-git-send-email-bryanhundven@gmail.com>

Bryan, All,

On 2014-09-04 13:56 -0700, Bryan Hundven spake thusly:
> This option enables a configuration knob for adding debugging info.
> 
> Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
> ---
>  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")

Do not forget to rename that to extra_config. ;-)
Ditto patch 4/5.

Regards,
Yann E. MORIN.

> +    fi
> +
>      if [ "${CT_LIBC_MUSL_OPTIMIZE_NONE}" = "y" ]; then
>          extra_conf+=("--optimize=no")
>      elif [ "${CT_LIBC_MUSL_OPTIMIZE_AUTO}" = "y" ]; then
> -- 
> 2.1.0
> 

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

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

  reply	other threads:[~2014-09-04 22:35 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-04 20:57 [PATCH 1/5] libc/musl: Remove gcc core pass-1 from musl-libc build Bryan Hundven
2014-09-04 20:57 ` [PATCH 3/5] libc/musl: Add config option for debugging info Bryan Hundven
2014-09-04 22:35   ` Yann E. MORIN [this message]
2014-09-04 20:57 ` [PATCH 2/5] libc/musl: Add options for optimization Bryan Hundven
2014-09-04 21:24   ` Yann E. MORIN
2014-09-04 20:57 ` [PATCH 4/5] libc/musl: Add config option for extra developer warnings Bryan Hundven
2014-09-04 20:57 ` [PATCH 5/5] config/gcc: Disable CC_GCC_LIBSANITIZER for musl-libc Bryan Hundven
2014-09-04 22:33 ` [PATCH 1/5] libc/musl: Remove gcc core pass-1 from musl-libc build Yann E. MORIN
2014-09-05  6:34 [PATCH v3 0/5] Add musl-libc options Bryan Hundven
2014-09-05  6:34 ` [PATCH 3/5] libc/musl: Add config option for debugging info Bryan Hundven

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140904223521.GD3945@free.fr \
    --to=yann.morin.1998@free.fr \
    --cc=bryanhundven@gmail.com \
    --cc=crossgcc@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).