From aaf7667a36a0268de87f1913fd9a87e1cbf7da92 Mon Sep 17 00:00:00 2001 From: Christian Cunningham Date: Fri, 4 Feb 2022 11:45:40 -0700 Subject: Don't link to gcc --- Common.mk | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Common.mk b/Common.mk index 69828e6..af0b724 100644 --- a/Common.mk +++ b/Common.mk @@ -42,11 +42,12 @@ build/kernel.list: build/kernel-g.elf build/kernel-g.elf: ${A_OBJECTD} ${C_OBJECTD} @mkdir -p $(@D) - ${CC} -T linker.ld -o $@ ${CFLAGS} $^ -lgcc + ${CC} -T linker.ld -o $@ ${CFLAGS} $^ build/kernel.elf: ${A_OBJECTD} ${C_OBJECTD} + @tput setaf 6 2> /dev/null || true; echo Linking Kernel; tput sgr0 2> /dev/null || true @mkdir -p $(@D) - ${CC} -T linker.ld -o $@ -ffreestanding -O3 -nostdlib $^ -lgcc + ${CC} -T linker.ld -o $@ -ffreestanding -O3 -nostdlib $^ export: build/kernel.list cp build/kernel-g.elf /mnt/c/Local/ @@ -60,7 +61,7 @@ obj/%.ao: src/%.S ${AS} ${AFLAGS} -c $< -o $@ run: build/kernel.elf - @echo Starting QEMU + @tput setaf 6 2> /dev/null || true; echo Starting QEMU; tput sgr0 2> /dev/null || true @${QEMU} -kernel $< ${QFLAGS} run-debug: build/kernel-g.elf -- cgit v1.2.1