After d5e5dd3401ea0d0475aa830c2171be5b8a72f4fa we can configure and make
gnumach without glibc, however it no longer used -O2 -g in CFLAGS by default.
This reverts that behavior.
---
 configure.ac | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/configure.ac b/configure.ac
index 8f10b5d5..3665d47a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -21,6 +21,10 @@ AC_INIT([AC_PACKAGE_NAME], [AC_PACKAGE_VERSION], 
[AC_PACKAGE_BUGREPORT],
   [AC_PACKAGE_TARNAME])
 AC_CONFIG_SRCDIR([kern/ipc_kobject.c])
 
+if test -z "${CFLAGS+set}"; then
+  # Use these CFLAGS by default if nothing is set.
+  CFLAGS="-g -O2"
+fi
 # We don't need glibc to compile gnumach.
 CFLAGS="$CFLAGS -ffreestanding -nostdlib"
 
-- 
2.39.0


Reply via email to