aboutsummaryrefslogtreecommitdiff
path: root/i686/toolchain.mk
diff options
context:
space:
mode:
authoraqua <aqua@iserlohn-fortress.net>2023-05-24 21:29:00 +0300
committeraqua <aqua@iserlohn-fortress.net>2023-05-24 21:29:29 +0300
commit050aa3ab70dd69d1ca8ffe94fd146039a0885550 (patch)
tree4002a7a0bb86580cc6a2adc2eee45891ee068540 /i686/toolchain.mk
parentPlace compiled objects and dependencies in build/ (diff)
downloadkernel-050aa3ab70dd69d1ca8ffe94fd146039a0885550.tar.xz
Make code ANSI C compatible
Diffstat (limited to 'i686/toolchain.mk')
-rw-r--r--i686/toolchain.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/i686/toolchain.mk b/i686/toolchain.mk
index f3f4732..460717e 100644
--- a/i686/toolchain.mk
+++ b/i686/toolchain.mk
@@ -3,10 +3,10 @@ ARCH=i686
# define compiler, linker, archiver and strip and their flags
${ARCH}_AS := i686-elf-as
-${ARCH}_CC := i686-elf-gcc
+${ARCH}_CC := i686-elf-gcc -ansi
${ARCH}_CCID := $(shell ${${ARCH}_CC} --version | head -n1)
${ARCH}_CFLAGS := -Wall -Wextra -Wpedantic -Werror=shadow -Wconversion -fanalyzer \
- -D__ARCH__="${ARCH}" -ffreestanding -std=gnu11 -mgeneral-regs-only \
+ -D__ARCH__="${ARCH}" -ffreestanding -mgeneral-regs-only \
$(shell echo ${CONFIG_CFLAGS})
${ARCH}_LD := i686-elf-ld