From: Paul Cercueil Date: Mon, 24 Jul 2023 21:14:36 +0000 (+0200) Subject: Fix Win32 build, part 2 X-Git-Tag: r24l~286^2 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e472e99960f10f10d32ad1f126e7e79db718409;p=pcsx_rearmed.git 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 --- 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