mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-01-31 00:23:56 +00:00
libc/musl: Add config option for debugging info
This option enables a configuration knob for adding debugging info. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
parent
cb27b22974
commit
9dd63da071
@ -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
|
||||
|
@ -46,6 +46,10 @@ do_libc_configure() {
|
||||
extra_cflags+=("-fno-toplevel-reorder")
|
||||
fi
|
||||
|
||||
if [ "${CT_LIBC_MUSL_DEBUG}" = "y" ]; then
|
||||
extra_config+=("--enable-debug")
|
||||
fi
|
||||
|
||||
extra_config+=( "--enable-optimize=${CT_LIBC_MUSL_OPTIMIZE}" )
|
||||
|
||||
# NOTE: musl handles the build/host/target a little bit differently
|
||||
|
Loading…
x
Reference in New Issue
Block a user