openssl: host build fails when ccache is enabled
authorJohn Crispin <john@openwrt.org>
Mon, 20 Oct 2014 11:19:53 +0000 (11:19 +0000)
committerJohn Crispin <john@openwrt.org>
Mon, 20 Oct 2014 11:19:53 +0000 (11:19 +0000)
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 43002

package/libs/openssl/Makefile

index 8ffd7f5..b51808b 100644 (file)
@@ -28,6 +28,11 @@ PKG_CONFIG_DEPENDS:=CONFIG_OPENSSL_ENGINE_CRYPTO CONFIG_OPENSSL_ENGINE_DIGEST \
 
 include $(INCLUDE_DIR)/package.mk
 
+ifneq ($(CONFIG_CCACHE),)
+HOSTCC=$(HOSTCC_NOCACHE)
+HOSTCXX=$(HOSTCXX_NOCACHE)
+endif
+
 define Package/openssl/Default
   TITLE:=Open source SSL toolkit
   URL:=http://www.openssl.org/