X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Makefile.libretro;h=5a59aeaff5a311cbd3ba0f65a6204cb7dbc4f9a7;hb=99a5a3364ebe6722805802f1861b6a5f6c6d4624;hp=e4a102a613cd8a5f8e7f97bc5f5d4e7352475de4;hpb=a9422018bae26b5f1dd65a25d1adef80b0bec99d;p=pcsx_rearmed.git diff --git a/Makefile.libretro b/Makefile.libretro index e4a102a6..5a59aeaf 100644 --- a/Makefile.libretro +++ b/Makefile.libretro @@ -334,6 +334,11 @@ CFLAGS += $(fpic) MAIN_LDFLAGS += -shared MAIN_LDLIBS += $(LIBPTHREAD) $(LIBM) $(LIBDL) $(LIBZ) +# enable large file support if available +ifeq ($(shell $(CC) -E -dD $(CFLAGS) include/arm_features.h | grep __SIZEOF_LONG__ | awk '{print $$3}'),4) +CFLAGS += -D_FILE_OFFSET_BITS=64 +endif + # try to autodetect stuff for the lazy ifndef ARCH ARCH = $(shell $(CC) -dumpmachine | awk -F- '{print $$1}')