Skip to content

Commit 1621319

Browse files
author
jimthescientist
committed
force usage of cross compiler on all platforms.
1 parent 81b21fb commit 1621319

1 file changed

Lines changed: 3 additions & 10 deletions

File tree

src/Makefile

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,30 +5,23 @@ ASM_SOURCES = $(wildcard kernel/*.asm driver/video/*.asm cpu/*.asm cpu/*/*.asm u
55
HEADERS = ${C_SOURCES:.c=.h}
66
OBJ = ${C_SOURCES:.c=.o} ${ASM_SOURCES:.asm=.o}
77
CFLAGS = -ffreestanding -fno-stack-protector -z execstack -no-pie -fno-pic
8-
8+
CC = x86_64-elf-gcc
9+
GDB = x86_64-elf-gdb
10+
LD = x86_64-elf-ld
911
ifeq ($(OS),Windows_NT)
1012
UNAME_S := $(shell uname -s)
1113
ifeq ($(UNAME_S),MSYS_NT-10.0-22631)
1214
$(info MSYS2 detected)
1315
host_os = linux
14-
CC = gcc
15-
GDB = gdb
16-
LD = ld
1716
else
1817
$(info Windows detected)
1918
host_os = windows
2019
SHELL = cmd
21-
CC = x86_64-elf-gcc
22-
GDB = x86_64-elf-gdb
23-
LD = x86_64-elf-ld
2420
endif
2521
else
2622
UNAME_S := $(shell uname -s)
2723
ifeq ($(UNAME_S),Linux)
2824
host_os = linux
29-
CC = gcc
30-
GDB = gdb
31-
LD = ld
3225
endif
3326
endif
3427

0 commit comments

Comments
 (0)