summaryrefslogtreecommitdiff
path: root/libagbsyscall
diff options
context:
space:
mode:
Diffstat (limited to 'libagbsyscall')
-rw-r--r--libagbsyscall/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/libagbsyscall/Makefile b/libagbsyscall/Makefile
index e1f502b2f..76368da86 100644
--- a/libagbsyscall/Makefile
+++ b/libagbsyscall/Makefile
@@ -8,9 +8,11 @@ COMPARE ?= 0
# files, or use arm-none-eabi binaries on the system
# if dkP is not installed on tihs system
+ifneq (,$(TOOLCHAIN))
ifneq ($(wildcard $(TOOLCHAIN)/bin),)
export PATH := $(TOOLCHAIN)/bin:$(PATH)
endif
+endif
PREFIX := arm-none-eabi-
OBJCOPY := $(PREFIX)objcopy