X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/36efdd7225ba11a80e811f21d09059eaff7c38b1..72a8cff4c1559ccc49a9185e92b30bf1e2f18643:/rules.mk diff --git a/rules.mk b/rules.mk index 53891eaa9..6c7514f2a 100644 --- a/rules.mk +++ b/rules.mk @@ -148,7 +148,7 @@ ifndef DUMP ifneq ($(TOOLCHAIN_LIB_DIRS),) TARGET_LDFLAGS+= $(patsubst %,-L%,$(TOOLCHAIN_LIB_DIRS)) endif - TOOLCHAIN_DIR:=$(TOOLCHAIN_ROOT_DIR) + TARGET_PATH:=$(TOOLCHAIN_DIR)/bin:$(TARGET_PATH) endif endif endif @@ -170,6 +170,7 @@ PKG_CONFIG:=$(STAGING_DIR_HOST)/bin/pkg-config export PKG_CONFIG HOSTCC:=gcc +HOSTCC_NOCACHE:=$(HOSTCC) HOST_CFLAGS:=-O2 -I$(STAGING_DIR_HOST)/include HOST_LDFLAGS:=-L$(STAGING_DIR_HOST)/lib @@ -188,6 +189,7 @@ INSTALL_CONF:=install -m0600 ifneq ($(CONFIG_CCACHE),) TARGET_CC:= ccache $(TARGET_CC) TARGET_CXX:= ccache $(TARGET_CXX) + HOSTCC:= ccache $(HOSTCC) endif TARGET_CONFIGURE_OPTS = \