From 7204340d292fdcc99683f98394372cecd66865db Mon Sep 17 00:00:00 2001 From: Michael Olbrich Date: Sat, 8 Jun 2013 11:56:59 +0200 Subject: 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 --- rules/pre/toolchain.make | 10 ++++++++++ 1 file changed, 10 insertions(+) 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) -- cgit v1.2.3