Description: Use `command -v` instead of `which`.
Forwarded: yes
Author: Peter Pentchev <roam@ringlet.net>
Last-Updated: 2021-12-29

--- a/vars.mk
+++ b/vars.mk
@@ -62,13 +62,13 @@
 
 _CC = $(CROSS)$(COLOR)gcc
 
-ifeq ($(shell which $(_CC)),)
+ifeq ($(shell command -v $(_CC)),)
 _CC = $(CROSS)gcc
-endif	# ifeq ($(shell which $(_CC)),)
+endif	# ifeq ($(shell command -v $(_CC)),)
 
-ifeq ($(shell which $(_CC)),)
+ifeq ($(shell command -v $(_CC)),)
 _CC = gcc
-endif	# ifeq ($(shell which $(_CC)),)
+endif	# ifeq ($(shell command -v $(_CC)),)
 
 CC ?= $(_CC)
 
