cdrkit: fix build with ccache
authorPeter Korsgaard <jacmet@sunsite.dk>
Thu, 20 Jan 2011 20:23:23 +0000 (21:23 +0100)
committerPeter Korsgaard <jacmet@sunsite.dk>
Thu, 20 Jan 2011 20:23:23 +0000 (21:23 +0100)
Cmake gets confused about ccache, so don't use ccache for cmake builds.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/cdrkit/cdrkit.mk

index a0ce9cb5672775f475f3a7b35cbc3028da531b9e..7d6899a3c4efc72f0ae795af4cf26c55080f9985 100644 (file)
@@ -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)