diff --git a/conf/Makefile.arm-linux-toolchain b/conf/Makefile.arm-linux-toolchain index de054efa14..04c747e9d1 100644 --- a/conf/Makefile.arm-linux-toolchain +++ b/conf/Makefile.arm-linux-toolchain @@ -46,7 +46,7 @@ NM = $(PREFIX)-nm SIZE = $(PREFIX)-size STRIP = $(PREFIX)-strip -GDB = $(shell $(PREFIX)-gdb) +GDB = $(shell which $(PREFIX)-gdb) ifeq ($(GDB),) GDB = $(shell which gdb-multiarch) endif