From 11745ec4a517f3d2030f806b513f82a988d6e48f Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Thu, 11 Nov 2021 01:14:18 -0500 Subject: [PATCH] genie: Define _FILE_OFFSET_BITS=64 on Linux. (#8808) --- 3rdparty/genie/build/gmake.linux/genie.make | 4 ++-- 3rdparty/genie/scripts/genie.lua | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/3rdparty/genie/build/gmake.linux/genie.make b/3rdparty/genie/build/gmake.linux/genie.make index fbb65308854..af00e6f90f7 100644 --- a/3rdparty/genie/build/gmake.linux/genie.make +++ b/3rdparty/genie/build/gmake.linux/genie.make @@ -46,7 +46,7 @@ ifeq ($(config),release) OBJDIR = obj/Release TARGETDIR = ../../bin/linux override TARGET = $(TARGETDIR)/genie - DEFINES += -DNDEBUG -DLUA_COMPAT_MODULE -DLUA_USE_POSIX -DLUA_USE_DLOPEN + DEFINES += -DNDEBUG -DLUA_COMPAT_MODULE -DLUA_USE_POSIX -DLUA_USE_DLOPEN -D_FILE_OFFSET_BITS=64 INCLUDES += -I"../../src/host/lua-5.3.0/src" ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP -MP $(DEFINES) $(INCLUDES) ALL_ASMFLAGS += $(ASMFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -Wall -Wextra -Os $(MPARAM) -Wno-implicit-fallthrough @@ -133,7 +133,7 @@ ifeq ($(config),debug) OBJDIR = obj/Debug TARGETDIR = ../../bin/linux override TARGET = $(TARGETDIR)/genie - DEFINES += -D_DEBUG -DLUA_COMPAT_MODULE -DLUA_USE_POSIX -DLUA_USE_DLOPEN + DEFINES += -D_DEBUG -DLUA_COMPAT_MODULE -DLUA_USE_POSIX -DLUA_USE_DLOPEN -D_FILE_OFFSET_BITS=64 INCLUDES += -I"../../src/host/lua-5.3.0/src" ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP -MP $(DEFINES) $(INCLUDES) ALL_ASMFLAGS += $(ASMFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -Wall -Wextra -g $(MPARAM) -Wno-implicit-fallthrough diff --git a/3rdparty/genie/scripts/genie.lua b/3rdparty/genie/scripts/genie.lua index 7e64ad9a68a..de537253079 100644 --- a/3rdparty/genie/scripts/genie.lua +++ b/3rdparty/genie/scripts/genie.lua @@ -77,6 +77,9 @@ links { "m" } linkoptions { "-rdynamic" } + configuration "linux" + define { "_FILE_OFFSET_BITS=64" } + configuration "macosx" targetdir "../bin/darwin" defines { "LUA_USE_MACOSX" }