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 <paul@crapouillou.net>
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 \
# 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