From c78f0941f3c41234844fbe9d567d798be0b9a809 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Ortega=20Froysa?= Date: Tue, 27 Feb 2018 00:50:27 +0100 Subject: [PATCH] Use a cross compiler. --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index cf022c1..671d5e1 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,9 @@ ASM=nasm BIN=bin -CFLAGS=-ffreestanding -fno-pie -m32 -ansi -CC=gcc -LD=ld -LDFLAGS=-melf_i386 -Ttext 0x1000 --oformat binary +CC=i686-elf-gcc +CFLAGS=-ffreestanding -fno-pie -ansi +LD=i686-elf-ld +LDFLAGS=-Ttext 0x1000 --oformat binary OBJ=kernel/kernel_entry.o kernel/kernel.o kernel/ports.o kernel/util.o drivers/screen.o