From 6bef0b4d240c3664d28638c6502b181860583e58 Mon Sep 17 00:00:00 2001 From: Bryan Hundven Date: Thu, 4 Sep 2014 23:34:02 -0700 Subject: libc/musl: Add config option for extra developer warnings This commit adds a configuration knob for enabling extra developer warnings to be enabled during the musl-libc build. Signed-off-by: Bryan Hundven Signed-off-by: Yann E. MORIN 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 96e8c78..ac98bb9 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 -- cgit v0.10.2-6-g49f6