diff --git a/Makefile b/Makefile index a5069b2e..7f199bc7 100644 --- a/Makefile +++ b/Makefile @@ -328,14 +328,16 @@ DEP_FILES := $(O_FILES:.o=.d) $(LIBZ_O_FILES:.o=.d) $(GODDARD_O_FILES:.o=.d) $(B # detect prefix for MIPS toolchain ifneq ($(call find-command,mips64-elf-ld),) CROSS := mips64-elf- -else ifneq ($(call find-command,mips64-ld),) - CROSS := mips64- else ifneq ($(call find-command,mips-n64-ld),) CROSS := mips-n64- +else ifneq ($(call find-command,mips64-ld),) + CROSS := mips64- else ifneq ($(call find-command,mips-linux-gnu-ld),) CROSS := mips-linux-gnu- else ifneq ($(call find-command,mips64-linux-gnu-ld),) CROSS := mips64-linux-gnu- +else ifneq ($(call find-command,mips-ld),) + CROSS := mips- else $(error Unable to detect a suitable MIPS toolchain installed) endif