libretro make fix for non-arm architectures

This commit is contained in:
kub 2020-07-02 16:14:16 +02:00
parent 18c95d9f57
commit b29bf88c22

View file

@ -27,7 +27,7 @@ STATIC_LINKING:= 0
TARGET_NAME := picodrive
LIBM := -lm
GIT_VERSION ?= $(shell git rev-parse --short HEAD || echo unknown)
ifneq ($(GIT_VERSION)," unknown")
ifneq ($(GIT_VERSION),"unknown")
CFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\"
endif
@ -463,6 +463,9 @@ endif
SHARED ?= -shared
LDFLAGS += $(SHARED) $(fpic)
ifneq ($(ARCH), arm)
ARCH = $(shell $(CC) -dumpmachine | awk -F '-' '{print $$1}')
endif
PLATFORM = libretro
NO_CONFIG_MAK = yes