From 05289c851b867cfd38e850aa645abcf76815ab26 Mon Sep 17 00:00:00 2001 From: Jon Daniel Date: Mon, 29 Mar 2021 23:27:16 +0000 Subject: [PATCH] Change order of compiler prefix and add more --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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