From 728581dc4bc7f32a29b1fbba6aa54ed6266feb33 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Wed, 15 Mar 2023 20:02:45 -0700 Subject: prereq-build: increase GCC requirement to 8 The current minimum OS requirement for OpenWrt is Ubuntu 18.04, which includes 7 and 8. 8 is necessary for ccache. gcc and g+++ are now symlinked to staging_dir, similar to Python. Signed-off-by: Rosen Penev --- rules.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rules.mk') diff --git a/rules.mk b/rules.mk index ca27583d27..f298c8d794 100644 --- a/rules.mk +++ b/rules.mk @@ -240,8 +240,8 @@ PKG_CONFIG:=$(STAGING_DIR_HOST)/bin/pkg-config export PKG_CONFIG -HOSTCC:=gcc -HOSTCXX:=g++ +HOSTCC:=$(STAGING_DIR_HOST)/bin/gcc +HOSTCXX:=$(STAGING_DIR_HOST)/bin/g++ HOST_CPPFLAGS:=-I$(STAGING_DIR_HOST)/include $(if $(IS_PACKAGE_BUILD),-I$(STAGING_DIR_HOSTPKG)/include -I$(STAGING_DIR)/host/include) HOST_CXXFLAGS:= HOST_CFLAGS:=-O2 $(HOST_CPPFLAGS) -- cgit v1.2.3