summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2009-05-30 15:48:44 +0000
committerLars-Peter Clausen <lars@metafoo.de>2009-05-30 15:48:44 +0000
commitebeb3829e18916d98c08c8d109c0db10d028dbe1 (patch)
treedd8026923af6b916046800c1ed3e68ea7aca1c23
parentd36a6dbc41a1f45a5c948f94c51ef6d4cd109644 (diff)
downloadmtk-20170518-ebeb3829e18916d98c08c8d109c0db10d028dbe1.zip
mtk-20170518-ebeb3829e18916d98c08c8d109c0db10d028dbe1.tar.gz
mtk-20170518-ebeb3829e18916d98c08c8d109c0db10d028dbe1.tar.bz2
Set TARGET_CXX to 'no' if c++ is not enabled in the toolchain.
SVN-Revision: 16213
-rw-r--r--rules.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules.mk b/rules.mk
index c3adb1d..15d62bc 100644
--- a/rules.mk
+++ b/rules.mk
@@ -103,7 +103,7 @@ HOST_CFLAGS:=-O2 -I$(STAGING_DIR_HOST)/include
HOST_LDFLAGS:=-L$(STAGING_DIR_HOST)/lib
TARGET_CC:=$(TARGET_CROSS)gcc
-TARGET_CXX:=$(TARGET_CROSS)g++
+TARGET_CXX:=$(if $(CONFIG_INSTALL_LIBSTDCPP),$(TARGET_CROSS)g++,no)
STRIP:=$(STAGING_DIR_HOST)/bin/sstrip
PATCH:=$(SCRIPT_DIR)/patch-kernel.sh
SED:=$(STAGING_DIR_HOST)/bin/sed -i -e