mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2024-12-17 20:34:36 +00:00
build: add a HOSTCXX variable pointing at the c++ compiler
SVN-Revision: 36109
This commit is contained in:
parent
12b686ed39
commit
3d6093c275
3
rules.mk
3
rules.mk
@ -175,6 +175,7 @@ PKG_CONFIG:=$(STAGING_DIR_HOST)/bin/pkg-config
|
|||||||
export PKG_CONFIG
|
export PKG_CONFIG
|
||||||
|
|
||||||
HOSTCC:=gcc
|
HOSTCC:=gcc
|
||||||
|
HOSTCXX:=g++
|
||||||
HOST_CPPFLAGS:=-I$(STAGING_DIR_HOST)/include
|
HOST_CPPFLAGS:=-I$(STAGING_DIR_HOST)/include
|
||||||
HOST_CFLAGS:=-O2 $(HOST_CPPFLAGS)
|
HOST_CFLAGS:=-O2 $(HOST_CPPFLAGS)
|
||||||
HOST_LDFLAGS:=-L$(STAGING_DIR_HOST)/lib
|
HOST_LDFLAGS:=-L$(STAGING_DIR_HOST)/lib
|
||||||
@ -196,6 +197,7 @@ INSTALL_CONF:=install -m0600
|
|||||||
TARGET_CC_NOCACHE:=$(TARGET_CC)
|
TARGET_CC_NOCACHE:=$(TARGET_CC)
|
||||||
TARGET_CXX_NOCACHE:=$(TARGET_CXX)
|
TARGET_CXX_NOCACHE:=$(TARGET_CXX)
|
||||||
HOSTCC_NOCACHE:=$(HOSTCC)
|
HOSTCC_NOCACHE:=$(HOSTCC)
|
||||||
|
HOSTCXX_NOCACHE:=$(HOSTCXX)
|
||||||
export TARGET_CC_NOCACHE
|
export TARGET_CC_NOCACHE
|
||||||
export TARGET_CXX_NOCACHE
|
export TARGET_CXX_NOCACHE
|
||||||
export HOSTCC_NOCACHE
|
export HOSTCC_NOCACHE
|
||||||
@ -204,6 +206,7 @@ ifneq ($(CONFIG_CCACHE),)
|
|||||||
TARGET_CC:= ccache_cc
|
TARGET_CC:= ccache_cc
|
||||||
TARGET_CXX:= ccache_cxx
|
TARGET_CXX:= ccache_cxx
|
||||||
HOSTCC:= ccache $(HOSTCC)
|
HOSTCC:= ccache $(HOSTCC)
|
||||||
|
HOSTCXX:= ccache $(HOSTCXX)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
TARGET_CONFIGURE_OPTS = \
|
TARGET_CONFIGURE_OPTS = \
|
||||||
|
Loading…
Reference in New Issue
Block a user