diff --git a/Makefile b/Makefile index d628ed154..ee2eb42bc 100644 --- a/Makefile +++ b/Makefile @@ -33,7 +33,7 @@ KBUILD := build-$(KHOST) KHOME := $(if ${SYSTEMROOT},$(word 1,$(subst :, ,${SYSTEMROOT})):/,$(if \ $(findstring $(CHOST),$(lastword $(CARCH))),C:/,/var/lib/))K -ERR = *** K require g++ v12 or greater, but it was not found. +ERR = *** K require g++ v10 or greater, but it was not found. HINT := consider a symlink at /usr/bin/$(CHOST)-g++ pointing to your g++ executable STEP = $(shell tput setaf 2;tput setab 0)Building $(1)..$(shell tput sgr0) SUDO = $(shell test -n "`command -v sudo`" && echo sudo) @@ -127,7 +127,7 @@ clean check lib: ifdef KALL unset KALL $(foreach chost,$(CARCH),&& $(MAKE) $@ CHOST=$(chost)) else - $(if $(shell ver="`$(CHOST)-g++ -dumpversion | cut -d'-' -f1`" && test $${ver%%.*} -lt 12 && echo 1),$(warning $(ERR));$(error $(HINT))) + $(if $(shell ver="`$(CHOST)-g++ -dumpversion | cut -d'-' -f1`" && test $${ver%%.*} -lt 10 && echo 1),$(warning $(ERR));$(error $(HINT))) @$(MAKE) -C src/lib $@ CHOST=$(CHOST) KHOST=$(KHOST) KHOME=$(KHOME) endif @@ -155,7 +155,7 @@ ifdef KALL unset KALL $(foreach chost,$(CARCH),&& $(MAKE) $@ CHOST=$(chost)) else $(info $(call STEP,$(KSRC) $@ $(CHOST))) - $(if $(shell ver="`$(CHOST)-g++ -dumpversion | cut -d'-' -f1`" && test $${ver%%.*} -lt 12 && echo 1),$(warning $(ERR));$(error $(HINT))) + $(if $(shell ver="`$(CHOST)-g++ -dumpversion | cut -d'-' -f1`" && test $${ver%%.*} -lt 10 && echo 1),$(warning $(ERR));$(error $(HINT))) @$(CHOST)-g++ --version @mkdir -p $(KBUILD)/bin $(MAKE) $(if $(findstring darwin,$(CHOST)),Darwin,$(if $(findstring mingw32,$(CHOST)),Win32,$(shell uname -s))) CHOST=$(CHOST)