Fix Win32 build, part 2
authorPaul Cercueil <paul@crapouillou.net>
Mon, 24 Jul 2023 21:14:36 +0000 (23:14 +0200)
committerPaul Cercueil <paul@crapouillou.net>
Mon, 24 Jul 2023 21:22:21 +0000 (23:22 +0200)
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 <paul@crapouillou.net>
Makefile

index 77f6a2a..ee3a44f 100644 (file)
--- 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