Message ID | 1409864217-17035-3-git-send-email-bryanhundven@gmail.com |
---|---|
State | Superseded |
Headers | show |
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 >
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
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(+)