From 9e472e99960f10f10d32ad1f126e7e79db718409 Mon Sep 17 00:00:00 2001 From: Paul Cercueil Date: Mon, 24 Jul 2023 23:14:36 +0200 Subject: [PATCH] Fix Win32 build, part 2 GNU Lightning does use the 'HAVE_MMAP' macro, so it needs to be defined when compiling it; otherwise Lightning will fail on an assert() at runtime. Signed-off-by: Paul Cercueil --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 77f6a2a6..ee3a44f0 100644 --- a/Makefile +++ b/Makefile @@ -124,6 +124,7 @@ OBJS += deps/lightning/lib/jit_disasm.o \ deps/lightrec/memmanager.o \ deps/lightrec/optimizer.o \ deps/lightrec/regcache.o +deps/lightning/%.o: CFLAGS += -DHAVE_MMAP=P_HAVE_MMAP libpcsxcore/lightrec/mem.o: CFLAGS += -D_GNU_SOURCE ifeq ($(MMAP_WIN32),1) CFLAGS += -Iinclude/mman -I deps/mman -- 2.39.5