feat: dynamic boot medium probing and mounting
[lunaix-os.git] / lunaix-os / config / make-cc
index ed1f6786021a640316dc2fba02a091fb78d12a61..7915afe89a0949d305ea569d5c9664564b9c3e52 100644 (file)
@@ -1,8 +1,9 @@
 CC := i686-elf-gcc
 AS := i686-elf-as
+AR := i686-elf-ar
 
 
-ARCH_OPT := -D__ARCH_IA32
+ARCH_OPT := -D__ARCH_IA32 -include flags.h
 O := -O2
 W := -Wall -Wextra -Wno-unknown-pragmas \
                -Wno-unused-function \
@@ -16,7 +17,10 @@ OFLAGS := -fno-gcse\
                  -fno-cse-follow-jumps\
                  -fno-cse-skip-blocks\
                  -fno-optimize-strlen\
-                 -fno-tree-builtin-call-dce 
+                 -fno-inline-functions-called-once \
+                 -fno-inline-functions \
+                 -fno-inline-small-functions \
+                 -fno-indirect-inlining
 
 CFLAGS := -std=gnu99 -ffreestanding $(O) $(OFLAGS) $(W) $(ARCH_OPT)
 LDFLAGS := -ffreestanding $(O) -nostdlib -lgcc
\ No newline at end of file