=================================================================== RCS file: /cvs/djgpp/djgpp/src/makefile.cfg,v retrieving revision 1.5 retrieving revision 1.6 diff -p -u -r1.5 -r1.6 --- djgpp/src/makefile.cfg 2015/05/03 12:23:14 1.5 +++ /cvs/djgpp/djgpp/src/makefile.cfg 2015/05/11 11:00:14 1.6 @@ -8,6 +8,12 @@ GCC_MINOR := $(word 3, $(shell ./misc.ex MTUNE := -mcpu=i586 IQUOTE := -I. -I- +ifeq ($(GCC_MAJOR),) +# very old gcc, e.g. gcc-2.95, fails the above, so we invent a default. +GCC_MAJOR := 2 +GCC_MINOR := 7 +endif + ifeq ($(filter 2 3,$(GCC_MAJOR)),) # we have gcc >= 4.x MTUNE := -mtune=i586