X-Git-Url: http://git.dujemihanovic.xyz/%7B%7B%20%24.Site.BaseURL%20%7D%7Dposts/index.xml?a=blobdiff_plain;f=boot%2Fx86%2Fstage3%2FMakefile;h=81a429044e99dfee4e6e06d4bddb069c4d8fa8fe;hb=99a030764f8e82f362926b77d01e10711774fb32;hp=c9622b20db8ba34c273c681b213404e64df3a94e;hpb=9603a4f4c7bfdf52bfbea6ead7b98e897a21f644;p=nameless-os.git diff --git a/boot/x86/stage3/Makefile b/boot/x86/stage3/Makefile index c9622b2..81a4290 100644 --- a/boot/x86/stage3/Makefile +++ b/boot/x86/stage3/Makefile @@ -1,8 +1,9 @@ STAGE3_OBJ = loader.o elf.o paging.o prekernel.o ASFLAGS_BASE = -f elf -g dwarf2 -DGIT_REVISION=\"$(GIT_REV)\" -CFLAGS_BASE = -ffreestanding -nostdlib -DGIT_REVISION=\"$(GIT_REV)\" -g -LDFLAGS_BASE = -ffreestanding -nostdlib -g -lgcc -T stage3.ld +CFLAGS_BASE = -ffreestanding -nostdlib -DGIT_REVISION=\"$(GIT_REV)\" -g \ + -O2 -flto +LDFLAGS_BASE = -ffreestanding -nostdlib -g -lgcc -T stage3.ld -flto default: LOADER.BIN loader.elf