fix curl compile
[openwrt/svn-archive/archive.git] / libs / curl / Makefile
index 8f3abf2..0f80736 100644 (file)
@@ -78,14 +78,17 @@ CONFIGURE_ARGS += \
 
 CONFIGURE_VARS += \
        LDFLAGS="$$$$LDFLAGS -lcrypto -lssl -lz" \
-
+       CC="$(filter-out ccache,$(TARGET_CC))"
 
 define Build/Configure
        $(call Build/Configure/Default,,bash)
 endef
 
 define Build/Compile
-       $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" install
+       $(MAKE) -C $(PKG_BUILD_DIR) \
+               DESTDIR="$(PKG_INSTALL_DIR)" \
+               CC="$(TARGET_CC)" \
+               install
 endef
 
 define Build/InstallDev