diff options
author | Guillermo E. Martinez <guillermo.e.martinez@oracle.com> | 2022-06-13 08:34:26 -0500 |
---|---|---|
committer | Chris Packham <judge.packham@gmail.com> | 2022-06-21 20:33:34 +1200 |
commit | 8a1ef667769653eb5b00c7d097321e58fdcf602e (patch) | |
tree | e2415732ad68ff44d8e8e47e3fc16faa942e2d89 /config/libc | |
parent | 618affc78902e86815c908e08a1d0c51832ce7ce (diff) | |
download | crosstool-ng-8a1ef667769653eb5b00c7d097321e58fdcf602e.tar.gz crosstool-ng-8a1ef667769653eb5b00c7d097321e58fdcf602e.tar.bz2 crosstool-ng-8a1ef667769653eb5b00c7d097321e58fdcf602e.zip |
glibc: configure adding debug symbols in glibc build
After building the cross toolchain and compile a simple C program,
objdump reports debug information even though -g modifier was not
used. These debug segments are in glibc library and CRT files. So
a new config entry: CT_GLIBC_ENABLE_DEBUG was added to control when
we want to add debug information to glibc, by default is enabled.
Signed-off-by: Guillermo E. Martinez <guillermo.e.martinez@oracle.com>
Diffstat (limited to 'config/libc')
-rw-r--r-- | config/libc/glibc.in | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/config/libc/glibc.in b/config/libc/glibc.in index 498450cb..39ab7930 100644 --- a/config/libc/glibc.in +++ b/config/libc/glibc.in @@ -172,6 +172,13 @@ config GLIBC_CONFIGPARMS Note: If you need to pass more than one value, separate them with '\n'. Eg.: var1=val1\nvar2=val2 +config GLIBC_ENABLE_DEBUG + bool + default y + prompt "Enable debug symbols" + help + Compile glibc using -g modifier. + config GLIBC_EXTRA_CFLAGS string prompt "extra target CFLAGS" |