feat: dynamic boot medium probing and mounting
[lunaix-os.git] / lunaix-os / config / make-cc
index 7a1899c327622e7abe2fdb86482ceb0b42dc3176..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 \
@@ -10,6 +11,16 @@ W := -Wall -Wextra -Wno-unknown-pragmas \
                -Wno-unused-parameter \
                -Wno-unused-variable\
                -Werror=incompatible-pointer-types
-               
-CFLAGS := -std=gnu99 -ffreestanding $(O) $(W) $(ARCH_OPT)
+
+OFLAGS := -fno-gcse\
+                 -fno-gcse-lm\
+                 -fno-cse-follow-jumps\
+                 -fno-cse-skip-blocks\
+                 -fno-optimize-strlen\
+                 -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