From f5a4bd8c61bcc5bfea494c28db9fec53ab1f7c45 Mon Sep 17 00:00:00 2001 From: Benjamin FRANCOIS Date: Wed, 12 May 2021 21:48:28 +0000 Subject: Fix 32bit Haiku build --- Makefile | 5 +++++ Makefile.libretro | 12 ++++++++++++ 2 files changed, 17 insertions(+) diff --git a/Makefile b/Makefile index 0259547..d59bb76 100644 --- a/Makefile +++ b/Makefile @@ -177,6 +177,11 @@ CPU:=i686 endif endif +#Haiku uses a different name for 32bit +ifeq ($(CPU),BePC) +CPU:=i686 +endif + TRANSOBJS=gen.o backend.o $(MEM) arena.o tern.o M68KOBJS=68kinst.o diff --git a/Makefile.libretro b/Makefile.libretro index b48532d..3650a9b 100644 --- a/Makefile.libretro +++ b/Makefile.libretro @@ -29,6 +29,18 @@ else ifneq ($(findstring Darwin,$(UNAME)),) ABI := x86_64 target = libblastem.dylib libname = blastem_libretro.dylib +else ifneq ($(findstring Haiku,$(UNAME)),) + platform = haiku + OS :=Haiku +ifeq ($(UNAMEM),x86_64) + ABI :=x86_64 + CC ?=gcc +else + ABI :=i686 + CC :=gcc-x86 +endif + target = libblastem.so + libname = blastem_libretro.so else platform = linux OS :=Linux -- cgit v1.2.3