diff options
author | Christian Cunningham <cc@localhost> | 2022-02-04 11:45:40 -0700 |
---|---|---|
committer | Christian Cunningham <cc@localhost> | 2022-02-04 11:45:40 -0700 |
commit | aaf7667a36a0268de87f1913fd9a87e1cbf7da92 (patch) | |
tree | 6cc03cc485b1b37fbd3dea0ecee5b48b48efd51b | |
parent | cfebe5feb55777bb377ff310b8cde03f3e0c25ff (diff) |
Don't link to gcc
-rw-r--r-- | Common.mk | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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 |