diff options
author | Ian Moffett <ian@osmora.org> | 2025-10-05 18:51:17 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-10-05 18:51:17 -0400 |
commit | b7ed37d5af4bdf78f2fbed4af896e9956bc85168 (patch) | |
tree | 303c5022859187bb5e75863d5a82e14377a43d8c /src/Makefile | |
parent | 72f7a04345e8f75041179960dfde3089b53c7344 (diff) |
build: Use toolchain for user programs
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'src/Makefile')
-rw-r--r-- | src/Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Makefile b/src/Makefile index 5b6f727..aa642f8 100644 --- a/src/Makefile +++ b/src/Makefile @@ -10,6 +10,7 @@ ISO = lunos.iso # Build tools BINUTILS_DIR := $(shell pwd)/cc/toolchain/build-binutils +USER_CC = $(shell pwd)/cc/gcc/bin/x86_64-pc-ethos-gcc CC := clang LD := ld AS := as @@ -28,12 +29,12 @@ sys: .PHONY: user user: - cd cmd/; make CC=$(CC) AS=$(AS) LD=$(LD) TARGET=$(TARGET) \ + cd cmd/; make CC=$(USER_CC) AS=$(AS) LD=$(LD) TARGET=$(TARGET) \ SYSROOT=$(SYSROOT) .PHONY: lib lib: - cd lib/; make CC=$(CC) AS=$(AS) LD=$(LD) TARGET=$(TARGET) \ + cd lib/; make CC=$(USER_CC) AS=$(AS) LD=$(LD) TARGET=$(TARGET) \ SYSROOT=$(SYSROOT) root: |