[Buildroot] [PATCH] tar: avoid ccache chicken and egg problem when bootstrapping tar

Wade Berrier wberrier at gmail.com
Wed Jul 3 20:57:35 UTC 2013


Signed-off-by: Wade Berrier <wberrier at gmail.com>
---
 package/tar/tar.mk |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/package/tar/tar.mk b/package/tar/tar.mk
index 3ffeaf0..56443a8 100644
--- a/package/tar/tar.mk
+++ b/package/tar/tar.mk
@@ -20,6 +20,11 @@ $(eval $(autotools-package))
 # host-tar: use cpio.gz instead of tar.gz to prevent chicken-egg problem
 # of needing tar to build tar.
 HOST_TAR_SOURCE = tar-$(TAR_VERSION).cpio.gz
+
+# ccache isn't available yet when building for the host
+HOST_TAR_CONF_ENV = \
+	CC="$(HOSTCC_NOCCACHE)"
+
 define HOST_TAR_EXTRACT_CMDS
 	mkdir -p $(@D)
 	cd $(@D) && \
-- 
1.7.9.5



More information about the buildroot mailing list