From e1f39cadfc986f737460f4b904c41d9a76f13676 Mon Sep 17 00:00:00 2001 From: lars Date: Sat, 30 May 2009 15:48:44 +0000 Subject: Set TARGET_CXX to 'no' if c++ is not enabled in the toolchain. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16213 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- rules.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules.mk b/rules.mk index c3adb1d6c9..15d62bc269 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 -- cgit v1.2.3