1
0
Fork 0
mirror of https://github.com/tailix/libkernaux.git synced 2024-12-11 11:35:27 -05:00

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)" \ AR="$(which i686-elf-ar)" \
CC="$(which i686-elf-gcc)" \ CC="$(which i686-elf-gcc)" \
RANLIB="$(which i686-elf-ranlib)" \ 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`. 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_AR
AM_PROG_AS AM_PROG_AS
AC_PROG_CC AC_PROG_CC
AC_PROG_CC_C99
AC_PROG_RANLIB AC_PROG_RANLIB
AC_OUTPUT AC_OUTPUT