Browse Source

libretro make fix for non-arm architectures

kub 3 years ago
parent
commit
b29bf88c22
1 changed files with 4 additions and 1 deletions
  1. 4 1
      Makefile.libretro

+ 4 - 1
Makefile.libretro

@@ -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