aboutsummaryrefslogtreecommitdiffstats
path: root/rules.mk
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-09-01 18:35:03 +0000
committerFelix Fietkau <nbd@openwrt.org>2008-09-01 18:35:03 +0000
commiteef95be7a27775fd197c76bef0ba7929237d3b85 (patch)
tree5285295a0da913306b4ff7953f34b811f387bf1c /rules.mk
parent38516cd7800fdcc2305b2d0041fda8fd4bd30e2f (diff)
downloadupstream-eef95be7a27775fd197c76bef0ba7929237d3b85.tar.gz
upstream-eef95be7a27775fd197c76bef0ba7929237d3b85.tar.bz2
upstream-eef95be7a27775fd197c76bef0ba7929237d3b85.zip
add TARGET_CXX variable which points to the c++ cross compiler
SVN-Revision: 12466
Diffstat (limited to 'rules.mk')
-rw-r--r--rules.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/rules.mk b/rules.mk
index e7a26fccc5..5df9c034db 100644
--- 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 \