From e50e7811443b3e4411f4d59c0c3a209e317cf552 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 15 Mar 2011 19:59:58 +0000 Subject: [PATCH] build: move the CCACHE_DIR to the build targets so that it doesn't interfere with a host ccache setup (backport of r26181) SVN-Revision: 26182 --- include/package.mk | 1 + rules.mk | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/include/package.mk b/include/package.mk index 21b3bff337..4c1d13864c 100644 --- a/include/package.mk +++ b/include/package.mk @@ -84,6 +84,7 @@ define Build/Exports/Default $(1) : export CONFIG_SITE:=$$(CONFIG_SITE) $(1) : export PKG_CONFIG_PATH=$$(STAGING_DIR)/usr/lib/pkgconfig $(1) : export PKG_CONFIG_LIBDIR=$$(STAGING_DIR)/usr/lib/pkgconfig + $(1) : export CCACHE_DIR:=$(STAGING_DIR)/ccache endef Build/Exports=$(Build/Exports/Default) diff --git a/rules.mk b/rules.mk index 1a58c6ae57..0068350ed2 100644 --- a/rules.mk +++ b/rules.mk @@ -174,8 +174,6 @@ INSTALL_DATA:=install -m0644 INSTALL_CONF:=install -m0600 ifneq ($(CONFIG_CCACHE),) - # FIXME: move this variable to a better location - export CCACHE_DIR=$(STAGING_DIR)/ccache TARGET_CC:= ccache $(TARGET_CC) endif -- 2.30.2