From 3db35eab70be425c679169fbda3a08bedc023107 Mon Sep 17 00:00:00 2001 From: jdgleaver Date: Fri, 26 Mar 2021 16:03:46 +0000 Subject: Fix OpenDingux Beta build --- Makefile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index eddfe36..a5f2649 100644 --- a/Makefile +++ b/Makefile @@ -379,6 +379,22 @@ else ifeq ($(platform), gcw0) HAVE_DYNAREC := 1 CPU_ARCH := mips +# GCW0 (OpenDingux Beta) +else ifeq ($(platform), gcw0-odbeta) + TARGET := $(TARGET_NAME)_libretro.so + CC = /opt/gcw0-toolchain/usr/bin/mipsel-linux-gcc + CXX = /opt/gcw0-toolchain/usr/bin/mipsel-linux-g++ + AR = /opt/gcw0-toolchain/usr/bin/mipsel-linux-ar + SHARED := -shared -nostdlib -Wl,--version-script=link.T + fpic := -fPIC -DPIC + CFLAGS += -fomit-frame-pointer -ffast-math -march=mips32 -mtune=mips32r2 -mhard-float + # The ASM code and/or MIPS dynarec of GPSP does not respect + # MIPS calling conventions, so we must use '-fno-caller-saves' + # for the OpenDingux Beta build + CFLAGS += -fno-caller-saves + HAVE_DYNAREC := 1 + CPU_ARCH := mips + # Windows else TARGET := $(TARGET_NAME)_libretro.dll -- cgit v1.2.3