X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/42211aab6f00d307978b791a5e024eceabcc4eaf..f05a333a0f27f401ff32cfd2e74364ee4ecc893a:/lunaix-os/config/make-cc diff --git a/lunaix-os/config/make-cc b/lunaix-os/config/make-cc index 416ae68..00ed9f3 100644 --- a/lunaix-os/config/make-cc +++ b/lunaix-os/config/make-cc @@ -1,7 +1,10 @@ -CC := i686-elf-gcc -AS := i686-elf-as +TOOLCHAIN := ${HOME}/opt/cross-compiler/bin/ +CC := ${TOOLCHAIN}i686-elf-gcc +AS := ${TOOLCHAIN}i686-elf-as + +ARCH_OPT := -D__ARCH_IA32 O := -O2 -W := -Wall -Wextra -CFLAGS := -std=gnu99 -ffreestanding $(O) $(W) +W := -Wall -Wextra -Wno-unknown-pragmas +CFLAGS := -std=gnu99 -ffreestanding $(O) $(W) $(ARCH_OPT) LDFLAGS := -ffreestanding $(O) -nostdlib -lgcc \ No newline at end of file