summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/gccdefs.mak2
-rw-r--r--common/ugcc_top.mak2
2 files changed, 3 insertions, 1 deletions
diff --git a/common/gccdefs.mak b/common/gccdefs.mak
index 0f9e4e1fd..2ed231a68 100644
--- a/common/gccdefs.mak
+++ b/common/gccdefs.mak
@@ -5,4 +5,4 @@
# Definitions for compilation with gcc.
CC_=gcc $(GENOPT) $(CFLAGS) $(XCFLAGS) -c
-CCAUX=gcc
+CCAUX=gcc $(CFLAGS)
diff --git a/common/ugcc_top.mak b/common/ugcc_top.mak
index 9f24b5156..61c749b16 100644
--- a/common/ugcc_top.mak
+++ b/common/ugcc_top.mak
@@ -66,6 +66,7 @@ $(GENDIR)/ldgs.tr: FORCE
-mkdir $(GLGENDIR)
-mkdir $(GLOBJDIR)
$(MAKE) \
+ CCAUX='$(CCAUX)'\
GCFLAGS='$(GCFLAGS)' FPU_TYPE='$(FPU_TYPE)'\
CONFIG='$(CONFIG)' FEATURE_DEVS='$(FEATURE_DEVS)' \
XINCLUDE='$(XINCLUDE)' XLIBDIRS='$(XLIBDIRS)' XLIBDIR='$(XLIBDIR)' XLIBS='$(XLIBS)' \
@@ -119,6 +120,7 @@ $(GENDIR)/ldgs.tr: FORCE
-mkdir $(GLOBJDIR)
touch $(GLOBJDIR)/gs_init.ps
$(MAKE) \
+ CCAUX='$(CCAUX)'\
GCFLAGS='$(GCFLAGS)' FPU_TYPE='$(FPU_TYPE)'\
CONFIG='$(CONFIG)' FEATURE_DEVS='$(FEATURE_DEVS)' \
XINCLUDE='$(XINCLUDE)' XLIBDIRS='$(XLIBDIRS)' XLIBDIR='$(XLIBDIR)' XLIBS='$(XLIBS)' \