From a017aca94ee3ba2f59e2824a590d0d5ab37990cf Mon Sep 17 00:00:00 2001 From: Paul Cercueil Date: Mon, 30 May 2022 18:23:02 +0100 Subject: [PATCH] Makefile: Fix build on Windows and Android Fix build under MinGW where the rt library wasn't found, and on Android where the dynarec isn't Lightrec but Ari64. Signed-off-by: Paul Cercueil --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index bff1a1c3..de2641b9 100644 --- a/Makefile +++ b/Makefile @@ -48,6 +48,7 @@ CFLAGS += -DPCNT endif LIGHTREC_CUSTOM_MAP ?= 0 +CFLAGS += -DLIGHTREC_CUSTOM_MAP=$(LIGHTREC_CUSTOM_MAP) # core OBJS += libpcsxcore/cdriso.o libpcsxcore/cdrom.o libpcsxcore/cheat.o libpcsxcore/database.o \ @@ -91,10 +92,9 @@ libpcsxcore/psxbios.o: CFLAGS += -Wno-nonnull # dynarec ifeq "$(DYNAREC)" "lightrec" CFLAGS += -Ideps/lightning/include -Ideps/lightrec -Iinclude/lightning -Iinclude/lightrec \ - -DLIGHTREC -DLIGHTREC_STATIC \ - -DLIGHTREC_CUSTOM_MAP=$(LIGHTREC_CUSTOM_MAP) -LDLIBS += -lrt + -DLIGHTREC -DLIGHTREC_STATIC ifeq ($(LIGHTREC_CUSTOM_MAP),1) +LDLIBS += -lrt OBJS += libpcsxcore/lightrec/mem.o endif OBJS += libpcsxcore/lightrec/plugin.o -- 2.39.2