summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2018-09-07 14:26:12 +0100
committerVincent Sanders <vince@kyllikki.org>2018-09-07 14:26:12 +0100
commit22fd851e1438afba1486f3e7a48e47435e0171f7 (patch)
tree6e197be3f2f5d1a09cdf2bf5d8c508ce4943ba76
parentc3d3023e4acd8015b3f53c6fb1d55f27417fe8df (diff)
downloadnetsurf-22fd851e1438afba1486f3e7a48e47435e0171f7.tar.gz
netsurf-22fd851e1438afba1486f3e7a48e47435e0171f7.tar.bz2
Fix compiler version comparison test
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
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