summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2013-06-08 11:56:59 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2013-06-08 11:57:01 +0200
commit7204340d292fdcc99683f98394372cecd66865db (patch)
treecb7672d637a50b5e40f83b357410808aeed8426c
parent1ea8872b6bfc8878f0c54c674b2f253af5582975 (diff)
downloadOSELAS.Toolchain-7204340d292fdcc99683f98394372cecd66865db.tar.gz
rules: define HOST_ENV_CC/HOST_ENV_CXX if undefined
This is only necessary for ptxdist-2013.02.0 and newer. While this is not really supported, we try not to break it. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--rules/pre/toolchain.make10
1 files changed, 10 insertions, 0 deletions
diff --git a/rules/pre/toolchain.make b/rules/pre/toolchain.make
index 644d7a4..fb81312 100644
--- a/rules/pre/toolchain.make
+++ b/rules/pre/toolchain.make
@@ -50,8 +50,18 @@ PTX_HOST_CROSS_AUTOCONF := \
$(PTX_HOST_CROSS_AUTOCONF_TARGET) \
$(PTX_HOST_CROSS_AUTOCONF_PREFIX)
+ifndef HOST_ENV_CC
+HOST_ENV_CC := CC=gcc
+HOST_ENV_CXX := CXX=g++
+HOST_ENV += \
+ $(HOST_ENV_CC) \
+ $(HOST_ENV_CXX)
+endif
+
# TODO:
PTX_HOST_ENV := \
+ $(HOST_ENV_CC) \
+ $(HOST_ENV_CXX) \
$(HOST_ENV_CPPFLAGS) \
$(HOST_ENV_LDFLAGS) \
$(HOST_ENV_PKG_CONFIG)