[build] Use which instead of command

`command` is shell buitin on Linux.
This commit is contained in:
Thiago Marcos P. Santos
2016-04-18 17:50:18 +03:00
parent 87b27711d5
commit 301b4c7c4e

View File

@@ -144,7 +144,7 @@ run-glfw-app:
run-valgrind-glfw-app:
cd $(PLATFORM_OUTPUT)/$(BUILDTYPE) && valgrind --leak-check=full --suppressions=../../../scripts/valgrind.sup ./mapbox-glfw
ifneq (,$(shell command -v gdb))
ifneq (,$(shell which gdb))
GDB = gdb -batch -return-child-result -ex 'set print thread-events off' -ex 'run' -ex 'thread apply all bt' --args
endif