]> git.dujemihanovic.xyz Git - nameless-os.git/blobdiff - kernel/Makefile
kernel: Enable -O2 and LTO again
[nameless-os.git] / kernel / Makefile
index 821e4942fbe3efb630685a8cfc271212606255c3..0290ee11eda0df03ad558bc69c4d7fab590ca8bc 100644 (file)
@@ -6,7 +6,7 @@ ASFLAGS_BASE = -f elf -g dwarf2
 CFLAGS_BASE = -fgnu89-inline -ffreestanding -nostdlib -Iinclude \
              -Iinclude/arch/x86 -g -DGIT_COMMIT=\"$(GIT_REV)\" \
              -O2 -flto
-LDFLAGS_BASE = -ffreestanding -nostdlib -lgcc -g -flto -T arch/x86/linker.ld
+LDFLAGS_BASE = -ffreestanding -nostdlib -lgcc -g -O2 -flto -T arch/x86/linker.ld
 
 kernel.elf kernel.dbg: $(KERNEL_OBJ)
        $(REAL_CC) $(LDFLAGS_BASE) $(LDFLAGS) $^ -o $@