From 18c574d66a93442decb4ee4af046e8039ddb5782 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Thu, 26 Mar 2020 11:24:03 +0900 Subject: [PATCH] Config.mk: Provide the default MODULECC/MODULELD In some cases, a separate toolchain is necessary to build modules. E.g. the sim on macOS, where the native format is Mach-O. By default, just use CC/LD, which is appropriate for the most of platforms. --- tools/Config.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/Config.mk b/tools/Config.mk index 04cd1519ae..1472ba551e 100644 --- a/tools/Config.mk +++ b/tools/Config.mk @@ -363,3 +363,9 @@ define TESTANDREPLACEFILE fi endef endif + +# Some defaults. +# $(TOPDIR)/Make.defs can override these appropriately. + +MODULECC = $(CC) +MODULELD = $(LD)