diff --git a/repos/base/mk/generic.mk b/repos/base/mk/generic.mk index a67c445396..e76d713b79 100644 --- a/repos/base/mk/generic.mk +++ b/repos/base/mk/generic.mk @@ -75,7 +75,7 @@ endif # We need to override these to build the ada runtime # CUSTOM_ADA_MAKE ?= $(GNATMAKE) -CUSTOM_ADA_FLAGS ?= -q -c --GCC=$(CC) --RTS=$(ADA_RTS) +CUSTOM_ADA_FLAGS ?= -q -c --GCC=$(ADA_CC) --RTS=$(ADA_RTS) CUSTOM_ADA_OPT ?= -cargs $(CC_ADA_OPT) CUSTOM_ADA_INCLUDE ?= -I- $(INCLUDES) diff --git a/repos/base/mk/global.mk b/repos/base/mk/global.mk index bb92edd566..84dba1c6ce 100644 --- a/repos/base/mk/global.mk +++ b/repos/base/mk/global.mk @@ -24,6 +24,7 @@ CUSTOM_RANLIB ?= $(CROSS_DEV_PREFIX)ranlib CUSTOM_STRIP ?= $(CROSS_DEV_PREFIX)strip CUSTOM_GNATMAKE ?= $(CROSS_DEV_PREFIX)gnatmake CUSTOM_HOST_CC ?= gcc +CUSTOM_ADA_CC ?= $(CUSTOM_CC) # # GNU utilities @@ -51,6 +52,7 @@ RANLIB = $(CUSTOM_RANLIB) STRIP = $(CUSTOM_STRIP) GNATMAKE = $(CUSTOM_GNATMAKE) HOST_CC = $(CUSTOM_HOST_CC) +ADA_CC = $(CUSTOM_ADA_CC) # # Nim toolchain