diff options
author | Flavio Cruz <flaviocruz@gmail.com> | 2024-07-10 17:04:40 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2024-07-10 22:34:25 +0200 |
commit | 97c589d0919cbb5b11156fa973b803fca3275af8 (patch) | |
tree | 9821ec06759017698234013aa68929adec914397 /configure.ac | |
parent | cb9ba488e47f4f836ed85841d66e3930b1f6e10f (diff) | |
download | gnumach-97c589d0919cbb5b11156fa973b803fca3275af8.tar.gz gnumach-97c589d0919cbb5b11156fa973b803fca3275af8.tar.bz2 gnumach-97c589d0919cbb5b11156fa973b803fca3275af8.zip |
Ensure we always pass -ffreestanding -nostdlib even if CFLAGS are overridden.
Message-ID: <4cea36qrjeo7tkklmqcwgkrxstxiqykdofha65zxmpni2o6lp3@2offokab6fvn>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index bf74b88e..88f4d9a1 100644 --- a/configure.ac +++ b/configure.ac @@ -25,7 +25,9 @@ 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. +saved_CFLAGS="$CFLAGS" +# We don't need glibc to compile gnumach so ensure we don't try to use it +# during configure. CFLAGS="$CFLAGS -ffreestanding -nostdlib" AC_CONFIG_AUX_DIR([build-aux]) @@ -268,6 +270,8 @@ AC_CONFIG_COMMANDS_POST([ [fi ]) + +CFLAGS="$saved_CFLAGS" # # Fire. # |