diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-03-22 12:52:17 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-03-22 12:52:17 +0000 |
commit | cd9eb981deac8171c5d16b9c6ac880f47f2cdbbd (patch) | |
tree | 2418d72a6247a1d74e1275a67cfc7c7afc4ecd0b /rules.mk | |
parent | aefe8e97ea4d76f79131868483f083d4b6ab6304 (diff) | |
download | upstream-cd9eb981deac8171c5d16b9c6ac880f47f2cdbbd.tar.gz upstream-cd9eb981deac8171c5d16b9c6ac880f47f2cdbbd.tar.bz2 upstream-cd9eb981deac8171c5d16b9c6ac880f47f2cdbbd.zip |
build: add a HOSTCXX variable pointing at the c++ compiler
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36109 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'rules.mk')
-rw-r--r-- | rules.mk | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -175,6 +175,7 @@ PKG_CONFIG:=$(STAGING_DIR_HOST)/bin/pkg-config export PKG_CONFIG HOSTCC:=gcc +HOSTCXX:=g++ HOST_CPPFLAGS:=-I$(STAGING_DIR_HOST)/include HOST_CFLAGS:=-O2 $(HOST_CPPFLAGS) HOST_LDFLAGS:=-L$(STAGING_DIR_HOST)/lib @@ -196,6 +197,7 @@ INSTALL_CONF:=install -m0600 TARGET_CC_NOCACHE:=$(TARGET_CC) TARGET_CXX_NOCACHE:=$(TARGET_CXX) HOSTCC_NOCACHE:=$(HOSTCC) +HOSTCXX_NOCACHE:=$(HOSTCXX) export TARGET_CC_NOCACHE export TARGET_CXX_NOCACHE export HOSTCC_NOCACHE @@ -204,6 +206,7 @@ ifneq ($(CONFIG_CCACHE),) TARGET_CC:= ccache_cc TARGET_CXX:= ccache_cxx HOSTCC:= ccache $(HOSTCC) + HOSTCXX:= ccache $(HOSTCXX) endif TARGET_CONFIGURE_OPTS = \ |