summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2011-01-20 20:23:23 (GMT)
committer Peter Korsgaard <jacmet@sunsite.dk>2011-01-20 20:23:23 (GMT)
commit464f862d82c2c1dee1f154e587e8771bbf45f780 (patch)
tree50810fb63883c31ffd05cb621340e73d02f2eaed
parent525c918aa298f1954f8b7a8662f190bc4dccca1f (diff)
downloadbuildroot-464f862d82c2c1dee1f154e587e8771bbf45f780.tar.gz
buildroot-464f862d82c2c1dee1f154e587e8771bbf45f780.tar.bz2
cdrkit: fix build with ccache
Cmake gets confused about ccache, so don't use ccache for cmake builds. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-rw-r--r--package/cdrkit/cdrkit.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/package/cdrkit/cdrkit.mk b/package/cdrkit/cdrkit.mk
index a0ce9cb..7d6899a 100644
--- a/package/cdrkit/cdrkit.mk
+++ b/package/cdrkit/cdrkit.mk
@@ -13,8 +13,9 @@ endif
# CMake doesn't support having the --sysroot option directly in the
# compiler path, so move this option to the CFLAGS/CXXFLAGS variables.
-CDRKIT_TARGET_CC = $(filter-out --sysroot=%,$(TARGET_CC))
-CDRKIT_TARGET_CXX = $(filter-out --sysroot=%,$(TARGET_CXX))
+# It also gets confused by ccache, so don't use ccache here.
+CDRKIT_TARGET_CC = $(filter-out --sysroot=%,$(TARGET_CC_NOCCACHE))
+CDRKIT_TARGET_CXX = $(filter-out --sysroot=%,$(TARGET_CXX_NOCCACHE))
CDRKIT_TARGET_CFLAGS = $(filter --sysroot=%,$(TARGET_CC)) $(TARGET_CFLAGS)
CDRKIT_TARGET_CXXFLAGS = $(filter --sysroot=%,$(TARGET_CXX)) $(TARGET_CXXFLAGS)