Skip to content

Commit

Permalink
Update libretro Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
inactive123 committed Dec 27, 2019
1 parent 3aab0a3 commit 810d60a
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions libretro/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,17 @@ filter_out2 = $(call filter_out1,$(call filter_out1,$1))

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
else ifneq ($(findstring win,$(shell uname -a)),)
arch = intel
ifeq ($(shell uname -p),powerpc)
arch = ppc
endif
else ifneq ($(findstring win,$(shell uname -s)),)
platform = win
endif
endif
Expand All @@ -29,6 +33,10 @@ ifeq ($(shell uname -a),)
system_platform = win
else ifneq ($(findstring Darwin,$(shell uname -a)),)
system_platform = osx
arch = intel
ifeq ($(shell uname -p),powerpc)
arch = ppc
endif
else ifneq ($(findstring MINGW,$(shell uname -a)),)
system_platform = win
endif
Expand Down Expand Up @@ -73,6 +81,11 @@ else ifeq ($(platform), osx)
LDFLAGS += $(ARCHFLAGS)
endif

ifeq ($(arch),ppc)
CFLAGS += -DHAVE_NO_LANGEXTRA
CXXFLAGS += -DHAVE_NO_LANGEXTRA
endif

# iOS
else ifneq (,$(findstring ios,$(platform)))

Expand Down

0 comments on commit 810d60a

Please # to comment.