aboutsummaryrefslogtreecommitdiff
path: root/i686
diff options
context:
space:
mode:
authoraqua <aqua@iserlohn-fortress.net>2022-10-29 14:57:25 +0300
committeraqua <aqua@iserlohn-fortress.net>2022-10-29 15:06:41 +0300
commit0fc5be1c91be5a2da53bfba58ebe690993448640 (patch)
tree4f793516fc086e659bfdbc47bfc73610cefc4424 /i686
parentmakefile: add devices/devs.a target (diff)
downloadkernel-0fc5be1c91be5a2da53bfba58ebe690993448640.tar.xz
makefile: add src/kernel.a target
Diffstat (limited to 'i686')
-rw-r--r--i686/toolchain.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/i686/toolchain.mk b/i686/toolchain.mk
index c41c784..5842584 100644
--- a/i686/toolchain.mk
+++ b/i686/toolchain.mk
@@ -2,11 +2,11 @@
#
AS = i686-elf-as
CC = i686-elf-gcc
-CCFLAGS = -Wall -Wextra -Wpedantic -fanalyzer -ffreestanding
+CCFLAGS = -Wall -Wextra -Wpedantic -fanalyzer -ffreestanding -std=gnu11 -mgeneral-regs-only
LD = i686-elf-ld
-LDFLAGS = -nostdlib
+LDFLAGS = -static -nostdlib
AR = i686-elf-ar
-ARFLAGS = r
+ARFLAGS = -ruv
STRIP = i686-elf-strip