From 7d6e296b4256c8c1002f053a9aeefc077a0363b3 Mon Sep 17 00:00:00 2001 From: Flavio Cruz Date: Sat, 21 Jan 2023 21:42:12 -0500 Subject: Use -O2 -g by default when compiling 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. Message-Id: --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'configure.ac') 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" -- cgit v1.2.3