mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-22 22:41:30 +03:00
make the Make rules for compiler versioning be more portable with fewer shell calls
This commit is contained in:
parent
4448722425
commit
7c5f9ed8cd
5
Makefile
5
Makefile
@ -283,8 +283,9 @@ else
|
||||
endif
|
||||
|
||||
# compiler versioning to adjust warning flags
|
||||
CC_MAJOR := $(shell $(CC) -dumpversion | cut -f1 -d. )
|
||||
CC_MINOR := $(shell $(CC) -dumpversion | cut -f2 -d. )
|
||||
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))
|
||||
endef
|
||||
|
Loading…
Reference in New Issue
Block a user