X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=rules.mk;h=479172de033df5c4e3463f2cef2abb229b8685b5;hb=11ea7ba6984cd184cad06e3c3ebd2418ab75bc65;hp=66ddea288306e1a89f3b5588050a9469e94efe2a;hpb=1f0063b58c84e55e209d19007d2acfbfdd22bc33;p=openwrt%2Fstaging%2Frmilecki.git diff --git a/rules.mk b/rules.mk index 66ddea28830..479172de033 100644 --- a/rules.mk +++ b/rules.mk @@ -144,7 +144,7 @@ ifeq ($(or $(CONFIG_EXTERNAL_TOOLCHAIN),$(CONFIG_TARGET_uml)),) ifeq ($(CONFIG_GCC_USE_IREMAP),y) iremap = -iremap$(1):$(2) else - iremap = -ffile-prefix-map=$(1)=$(2) + iremap = -f$(if $(CONFIG_REPRODUCIBLE_DEBUG_INFO),file,macro)-prefix-map=$(1)=$(2) endif endif @@ -298,6 +298,9 @@ ifneq ($(CONFIG_CCACHE),) TARGET_CXX:= ccache_cxx HOSTCC:= ccache $(HOSTCC) HOSTCXX:= ccache $(HOSTCXX) + export CCACHE_BASEDIR:=$(TOPDIR) + export CCACHE_DIR:=$(if $(call qstrip,$(CONFIG_CCACHE_DIR)),$(call qstrip,$(CONFIG_CCACHE_DIR)),$(TOPDIR)/.ccache) + export CCACHE_COMPILERCHECK:=%compiler% -dumpmachine; %compiler% -dumpversion endif TARGET_CONFIGURE_OPTS = \