936220186d
cmake is a dependency of ccache, which means it is build before ccache is available and hence must be build with non-ccache CC and CXX. It currently works, because the cmake build system splits the compiler variable and treats them as multiple compilers to check. For "ccache gcc" it first tests for "ccache", which always fails, because ccache is not a compiler by itself, even if it is available, and then ends up calling "gcc" alone, effectively never using ccache. Let's make this explicit by forcing the use of non-ccache CC and CXX. Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
39 lines
956 B
Makefile
39 lines
956 B
Makefile
#
|
|
# Copyright (C) 2006-2016 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=cmake
|
|
PKG_VERSION:=3.19.1
|
|
PKG_RELEASE:=1
|
|
PKG_CPE_ID:=cpe:/a:kitware:cmake
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=https://github.com/Kitware/CMake/releases/download/v$(PKG_VERSION)/ \
|
|
https://cmake.org/files/v3.19/
|
|
PKG_HASH:=1d266ea3a76ef650cdcf16c782a317cb4a7aa461617ee941e389cb48738a3aba
|
|
|
|
HOST_BUILD_PARALLEL:=1
|
|
HOST_CONFIGURE_PARALLEL:=1
|
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
|
|
|
HOST_CONFIGURE_VARS += \
|
|
CC="$(HOSTCC_NOCACHE)" \
|
|
CXX="$(HOSTCXX_NOCACHE)" \
|
|
MAKEFLAGS="$(HOST_JOBS)" \
|
|
CXXFLAGS="$(HOST_CFLAGS)"
|
|
|
|
HOST_CONFIGURE_ARGS := \
|
|
$(if $(MAKE_JOBSERVER),--parallel="$(MAKE_JOBSERVER)") \
|
|
--prefix=$(STAGING_DIR_HOST)
|
|
|
|
ifneq ($(findstring c,$(OPENWRT_VERBOSE)),)
|
|
HOST_MAKE_FLAGS += VERBOSE=1
|
|
endif
|
|
|
|
$(eval $(call HostBuild))
|