aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-02-04 11:45:40 -0700
committerChristian Cunningham <cc@localhost>2022-02-04 11:45:40 -0700
commitaaf7667a36a0268de87f1913fd9a87e1cbf7da92 (patch)
tree6cc03cc485b1b37fbd3dea0ecee5b48b48efd51b
parentcfebe5feb55777bb377ff310b8cde03f3e0c25ff (diff)
Don't link to gcc
-rw-r--r--Common.mk7
1 files 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