mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-27 17:55:55 +02:00
build: move the CCACHE_DIR to the build targets so that it doesn't interfere with a host ccache setup (backport of r26181)
git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@26182 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
086a83f4cd
commit
75e500e6d4
@ -84,6 +84,7 @@ define Build/Exports/Default
|
|||||||
$(1) : export CONFIG_SITE:=$$(CONFIG_SITE)
|
$(1) : export CONFIG_SITE:=$$(CONFIG_SITE)
|
||||||
$(1) : export PKG_CONFIG_PATH=$$(STAGING_DIR)/usr/lib/pkgconfig
|
$(1) : export PKG_CONFIG_PATH=$$(STAGING_DIR)/usr/lib/pkgconfig
|
||||||
$(1) : export PKG_CONFIG_LIBDIR=$$(STAGING_DIR)/usr/lib/pkgconfig
|
$(1) : export PKG_CONFIG_LIBDIR=$$(STAGING_DIR)/usr/lib/pkgconfig
|
||||||
|
$(1) : export CCACHE_DIR:=$(STAGING_DIR)/ccache
|
||||||
endef
|
endef
|
||||||
Build/Exports=$(Build/Exports/Default)
|
Build/Exports=$(Build/Exports/Default)
|
||||||
|
|
||||||
|
2
rules.mk
2
rules.mk
@ -174,8 +174,6 @@ INSTALL_DATA:=install -m0644
|
|||||||
INSTALL_CONF:=install -m0600
|
INSTALL_CONF:=install -m0600
|
||||||
|
|
||||||
ifneq ($(CONFIG_CCACHE),)
|
ifneq ($(CONFIG_CCACHE),)
|
||||||
# FIXME: move this variable to a better location
|
|
||||||
export CCACHE_DIR=$(STAGING_DIR)/ccache
|
|
||||||
TARGET_CC:= ccache $(TARGET_CC)
|
TARGET_CC:= ccache $(TARGET_CC)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user