[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Use -O2 -g by default when compiling
From: |
Samuel Thibault |
Subject: |
Re: [PATCH] Use -O2 -g by default when compiling |
Date: |
Tue, 24 Jan 2023 02:37:10 +0100 |
User-agent: |
NeoMutt/20170609 (1.8.3) |
Applied, thanks!
Flavio Cruz, le sam. 21 janv. 2023 21:42:12 -0500, a ecrit:
> 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
>
>
--
Samuel
---
Pour une évaluation indépendante, transparente et rigoureuse !
Je soutiens la Commission d'Évaluation de l'Inria.