mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
648e014184
Redirecting `2>&1 >/dev/null` moves stderr to stdout first and then stdout to /dev/null; when checking for command existence or otherwise silencing output, this is usually not desired (but only starts producing errors when the actual command fails, which is often not tested).
8 lines
243 B
Makefile
8 lines
243 B
Makefile
# new versions of gdb will support all architectures in one binary
|
|
ifeq ($(shell gdb-multiarch -v > /dev/null 2>&1; echo $$?),0)
|
|
export GDB ?= gdb-multiarch
|
|
else
|
|
export GDBPREFIX ?= $(PREFIX)
|
|
export GDB ?= $(GDBPREFIX)gdb
|
|
endif
|