On my Ubuntu 12.04 system, /usr/bin/ccache was getting picked up as the
compiler under race-y conditions, and then cmake would try to run

  /usr/bin/ccache ccache_cc

causing the compilation to fail with a "ccache invoked recursively"
error.

It's possible the filter-out can go away with this change.

Signed-off-by: Jay Carlson <n...@nop.com>
---
 include/cmake.mk |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/cmake.mk b/include/cmake.mk
index 4c4af50..a1a5a4b 100644
--- a/include/cmake.mk
+++ b/include/cmake.mk
@@ -22,9 +22,9 @@ else
     CCACHE:=$(STAGING_DIR_HOST)/bin/ccache
   endif
   CMAKE_C_COMPILER:=$(CCACHE)
-  CMAKE_C_COMPILER_ARG1:=$(filter-out ccache,$(TARGET_CC))
+  CMAKE_C_COMPILER_ARG1:=$(filter-out ccache,$(TARGET_CC_NOCACHE))
   CMAKE_CXX_COMPILER:=$(CCACHE)
-  CMAKE_CXX_COMPILER_ARG1:=$(filter-out ccache,$(TARGET_CXX))
+  CMAKE_CXX_COMPILER_ARG1:=$(filter-out ccache,$(TARGET_CXX_NOCACHE))
 endif
 
 define Build/Configure/Default
-- 
1.7.9.5

_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to