Fix build errors on Debian

This commit is contained in:
Ryan Dwyer committed 2020-11-02 18:05:10 +10:00
1 parent 33317b11ce
commit a73335640a
4 files changed
+42 -26

No files matched your search

+5 -3
View File
@@ -42,10 +42,12 @@ endif
E_DIR := extracted/$(ROMID)
B_DIR := build/$(ROMID)
ifeq ($(shell type mips64-elf-ld >/dev/null 2>/dev/null; echo $$?), 0)
TOOLCHAIN := mips64-elf
else ifeq ($(shell type mips-linux-gnu-ld >/dev/null 2>/dev/null; echo $$?), 0)
ifeq ($(shell type mips-linux-gnu-ld >/dev/null 2>/dev/null; echo $$?), 0)
# Debian, Ubuntu and Arch AUR
TOOLCHAIN := mips-linux-gnu
else ifeq ($(shell type mips64-elf-ld >/dev/null 2>/dev/null; echo $$?), 0)
# Arch AUR
TOOLCHAIN := mips64-elf
else ifeq ($(shell type mips64-linux-gnu-ld >/dev/null 2>/dev/null; echo $$?), 0)
TOOLCHAIN := mips64-linux-gnu
else