summaryrefslogtreecommitdiff
path: root/toolchain/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-06-16 18:12:14 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2014-06-16 18:12:45 +0200
commit224199c2a01bb660242688aca506373e40b79775 (patch)
treeb90c366b66df5084f491f023a4ee8992a1ce6585 /toolchain/Makefile
parent160355e07ae13598b10bdf1962e8c8044042c2a7 (diff)
optimize environment variables, reduce duplicate stuff
Diffstat (limited to 'toolchain/Makefile')
-rw-r--r--toolchain/Makefile12
1 files changed, 4 insertions, 8 deletions
diff --git a/toolchain/Makefile b/toolchain/Makefile
index 0454e4bef..6f672532e 100644
--- a/toolchain/Makefile
+++ b/toolchain/Makefile
@@ -57,8 +57,7 @@ $(CLIB)-fixup: gcc-install gdb-install
$(MAKE_TRACE); \
else \
$(MAKE) -C $(patsubst %-prepare,%,$@) prepare \
- CC='$(CC_FOR_BUILD)' CFLAGS='$(CFLAGS_FOR_BUILD)' \
- $(MAKE_TRACE); \
+ CC='$(HOST_CC)' CFLAGS='$(HOST_CFLAGS)' $(MAKE_TRACE); \
fi
%-configure: %-prepare
@@ -68,8 +67,7 @@ $(CLIB)-fixup: gcc-install gdb-install
$(MAKE_TRACE); \
else \
$(MAKE) -C $(patsubst %-configure,%,$@) configure \
- CC='$(CC_FOR_BUILD)' CFLAGS='$(CFLAGS_FOR_BUILD)' \
- $(MAKE_TRACE); \
+ CC='$(HOST_CC)' CFLAGS='$(HOST_CFLAGS)' $(MAKE_TRACE); \
fi
%-compile: %-configure
@@ -79,8 +77,7 @@ $(CLIB)-fixup: gcc-install gdb-install
$(MAKE_TRACE); \
else \
$(MAKE) -C $(patsubst %-compile,%,$@) compile \
- CC='$(CC_FOR_BUILD)' CFLAGS='$(CFLAGS_FOR_BUILD)' \
- $(MAKE_TRACE); \
+ CC='$(HOST_CC)' CFLAGS='$(HOST_CFLAGS)' $(MAKE_TRACE); \
fi
%-install: %-compile
@@ -90,8 +87,7 @@ $(CLIB)-fixup: gcc-install gdb-install
$(MAKE_TRACE); \
else \
$(MAKE) -C $(patsubst %-install,%,$@) install \
- CC='$(CC_FOR_BUILD)' CFLAGS='$(CFLAGS_FOR_BUILD)' \
- $(MAKE_TRACE); \
+ CC='$(HOST_CC)' CFLAGS='$(HOST_CFLAGS)' $(MAKE_TRACE); \
fi
%-fixup: %-install