summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-06-19 00:58:18 -0400
committerIan Moffett <ian@osmora.org>2025-06-19 00:58:18 -0400
commit69555029efa9f7bdd9c3fe5beb201d3c9b341c41 (patch)
treec7da3c8b09baef8ffa99cbf74bf3cad828825ef9 /Makefile.in
parentcaad8df87d20c5949ef4c1190bc5a63ccf75dc05 (diff)
build: Pass "CC" makevar to user makefiles
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in9
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile.in b/Makefile.in
index 508ee1c..c0371b7 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -73,17 +73,20 @@ all: stand/boot/ libc sbin bin base/boot/hyra-kernel
.PHONY: sbin
sbin: $(SBIN_MAKEDIRS)
make -C usr.sbin/ LDSCRIPT=$(shell pwd)/usr.sbin/link.ld USRDIR=$(USRDIR)\
- ROOT=$(PROJECT_ROOT) OSVER=$(HYRA_VERSION) OSARCH=$(ARCH)
+ ROOT=$(PROJECT_ROOT) OSVER=$(HYRA_VERSION) OSARCH=$(ARCH)\
+ CC="$(CC)"
.PHONY: bin
bin: $(BIN_MAKEDIRS)
make -C usr.bin/ LDSCRIPT=$(shell pwd)/usr.bin/link.ld USRDIR=$(USRDIR)\
- ROOT=$(PROJECT_ROOT) OSVER=$(HYRA_VERSION) OSARCH=$(ARCH)
+ ROOT=$(PROJECT_ROOT) OSVER=$(HYRA_VERSION) OSARCH=$(ARCH)\
+ CC="$(CC)"
.PHONY: libc
libc:
$(MAKE) -C lib/libc/ -I$(shell pwd)/builddeps \
- USRDIR=$(USRDIR) ARCH=$(ARCH) ROOT=$(PROJECT_ROOT)
+ USRDIR=$(USRDIR) ARCH=$(ARCH) ROOT=$(PROJECT_ROOT) \
+ CC="$(CC)"
.PHONY: cross
cross: