build: override ARCH to sh on sh4 systems

pull/23/head
Ariadne Conill 2020-12-11 12:09:59 +00:00
parent 4ea37b1877
commit de399ebdbf
1 changed files with 3 additions and 0 deletions

View File

@ -4,6 +4,9 @@ ARCH := $(shell uname -m)
ifeq ($(ARCH),$(filter $(ARCH),i386 i686)) ifeq ($(ARCH),$(filter $(ARCH),i386 i686))
override ARCH = x86 override ARCH = x86
endif endif
ifeq ($(ARCH),$(filter $(ARCH),sh2 sh4))
override ARCH = sh
endif
LIBDIR := /lib LIBDIR := /lib
INCLUDEDIR := /usr/include INCLUDEDIR := /usr/include