From 94a4cc8415e21416edadffed25c53bd5fe3e1d9e Mon Sep 17 00:00:00 2001 From: hexcoder- Date: Wed, 18 Mar 2020 22:55:14 +0100 Subject: Makefiles: prefer POSIX 'type' over 'which' for checking --- gcc_plugin/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc_plugin') diff --git a/gcc_plugin/Makefile b/gcc_plugin/Makefile index 37485d0b..ce01e6f9 100644 --- a/gcc_plugin/Makefile +++ b/gcc_plugin/Makefile @@ -81,7 +81,7 @@ endif test_deps: @echo "[*] Checking for working '$(CC)'..." - @which $(CC) >/dev/null 2>&1 || ( echo "[-] Oops, can't find '$(CC)'. Make sure that it's in your \$$PATH (or set \$$CC and \$$CXX)."; exit 1 ) + @type $(CC) >/dev/null 2>&1 || ( echo "[-] Oops, can't find '$(CC)'. Make sure that it's in your \$$PATH (or set \$$CC and \$$CXX)."; exit 1 ) # @echo "[*] Checking for gcc for plugin support..." # @$(CC) -v 2>&1 | grep -q -- --enable-plugin || ( echo "[-] Oops, this gcc has not been configured with plugin support."; exit 1 ) @echo "[*] Checking for gcc plugin development header files..." -- cgit 1.4.1