From 22fd851e1438afba1486f3e7a48e47435e0171f7 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Fri, 7 Sep 2018 14:26:12 +0100 Subject: Fix compiler version comparison test --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 04f3263d0..064ae6928 100644 --- a/Makefile +++ b/Makefile @@ -323,7 +323,7 @@ CC_VERSION := $(shell $(CC) -dumpversion) CC_MAJOR := $(word 1,$(subst ., ,$(CC_VERSION))) CC_MINOR := $(word 2,$(subst ., ,$(CC_VERSION))) define cc_ver_ge -$(shell expr $(CC_MAJOR) \>= $(1) \& $(CC_MINOR) \>= $(2)) +$(shell expr $(CC_MAJOR) \> $(1) \| \( $(CC_MAJOR) = $(1) \& $(CC_MINOR) \>= $(2) \) ) endef # CCACHE -- cgit v1.2.3