makefile.libretro: fix platform detection

This commit is contained in:
Cristi Mitrana
2019-12-11 11:16:49 +02:00
parent cfa6350035
commit 47c1c9a9c3

View File

@@ -18,17 +18,17 @@ RETROARCH_OBJECTS :=
ifeq ($(platform),)
platform = unix
ifeq ($(shell uname -a),)
ifeq ($(shell uname -s),)
platform = win
else ifneq ($(findstring MINGW,$(shell uname -a)),)
else ifneq ($(findstring MINGW,$(shell uname -s)),)
platform = win
else ifneq ($(findstring Darwin,$(shell uname -a)),)
else ifneq ($(findstring Darwin,$(shell uname -s)),)
platform = osx
arch = intel
ifeq ($(shell uname -p),powerpc)
arch = ppc
endif
else ifneq ($(findstring win,$(shell uname -a)),)
else ifneq ($(findstring win,$(shell uname -s)),)
platform = win
endif
endif