diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/build/libc/glibc.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/build/libc/glibc.sh b/scripts/build/libc/glibc.sh index 2afefd41..e400b219 100644 --- a/scripts/build/libc/glibc.sh +++ b/scripts/build/libc/glibc.sh @@ -131,8 +131,12 @@ glibc_backend_once() # Pre-seed the configparms file with values from the config option printf "%s\n" "${CT_GLIBC_CONFIGPARMS}" > configparms + if [ "${CT_GLIBC_ENABLE_DEBUG}" = "y" ]; then + glibc_cflags+=" -g" + fi + # glibc can't be built without -O2 (reference needed!) - glibc_cflags+=" -g -O2" + glibc_cflags+=" -O2" if [ "${CT_GLIBC_ENABLE_COMMON_FLAG}" = "y" ]; then glibc_cflags+=" -fcommon" |