add TARGET_CXX variable which points to the c++ cross compiler
authorFelix Fietkau <nbd@openwrt.org>
Mon, 1 Sep 2008 18:35:03 +0000 (18:35 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 1 Sep 2008 18:35:03 +0000 (18:35 +0000)
SVN-Revision: 12466

rules.mk

index e7a26fccc50fab6df966d049da55db3a00289569..5df9c034dbf777be834da15797158436491bd23a 100644 (file)
--- a/rules.mk
+++ b/rules.mk
@@ -97,6 +97,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++
 STRIP:=$(STAGING_DIR_HOST)/bin/sstrip
 PATCH:=$(SCRIPT_DIR)/patch-kernel.sh
 SED:=$(STAGING_DIR_HOST)/bin/sed -i -e
@@ -120,7 +121,7 @@ TARGET_CONFIGURE_OPTS:= \
   NM=$(TARGET_CROSS)nm \
   CC="$(TARGET_CC)" \
   GCC="$(TARGET_CC)" \
-  CXX=$(TARGET_CROSS)g++ \
+  CXX="$(TARGET_CXX)" \
   RANLIB=$(TARGET_CROSS)ranlib \
   STRIP=$(TARGET_CROSS)strip \
   OBJCOPY=$(TARGET_CROSS)objcopy \