From 464f862d82c2c1dee1f154e587e8771bbf45f780 Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Thu, 20 Jan 2011 21:23:23 +0100 Subject: cdrkit: fix build with ccache Cmake gets confused about ccache, so don't use ccache for cmake builds. Signed-off-by: Peter Korsgaard --- package/cdrkit/cdrkit.mk | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'package/cdrkit') diff --git a/package/cdrkit/cdrkit.mk b/package/cdrkit/cdrkit.mk index a0ce9cb56..7d6899a3c 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) -- cgit v1.2.3