Specify C99 standard in autoconf

This commit is contained in:
Alex Kotov 2020-11-27 18:43:58 +05:00
parent 23b9c941f2
commit df25b8d61d
Signed by: kotovalexarian
GPG Key ID: 553C0EBBEB5D5F08
2 changed files with 2 additions and 1 deletions

View File

@ -16,7 +16,7 @@ Configure with cross-compiler in `$PATH` to make without it in `$PATH`:
AR="$(which i686-elf-ar)" \
CC="$(which i686-elf-gcc)" \
RANLIB="$(which i686-elf-ranlib)" \
CFLAGS='-std=gnu99 -ffreestanding -nostdinc -nostdlib -fno-builtin -fno-stack-protector -Wall -Wextra'
CFLAGS='-ffreestanding -nostdinc -nostdlib -fno-builtin -fno-stack-protector -Wall -Wextra'
```
Check if compilation targets i386: `objdump -d src/arch/i386.o`.

View File

@ -20,6 +20,7 @@ AC_LANG([C])
AM_PROG_AR
AM_PROG_AS
AC_PROG_CC
AC_PROG_CC_C99
AC_PROG_RANLIB
AC_OUTPUT