genie: Define _FILE_OFFSET_BITS=64 on Linux. (#8808)

This commit is contained in:
Matthew Barnes 2021-11-11 01:14:18 -05:00 committed by GitHub
parent 15093de56d
commit 11745ec4a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View file

@ -46,7 +46,7 @@ ifeq ($(config),release)
OBJDIR = obj/Release OBJDIR = obj/Release
TARGETDIR = ../../bin/linux TARGETDIR = ../../bin/linux
override TARGET = $(TARGETDIR)/genie 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" INCLUDES += -I"../../src/host/lua-5.3.0/src"
ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP -MP $(DEFINES) $(INCLUDES) ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP -MP $(DEFINES) $(INCLUDES)
ALL_ASMFLAGS += $(ASMFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -Wall -Wextra -Os $(MPARAM) -Wno-implicit-fallthrough ALL_ASMFLAGS += $(ASMFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -Wall -Wextra -Os $(MPARAM) -Wno-implicit-fallthrough
@ -133,7 +133,7 @@ ifeq ($(config),debug)
OBJDIR = obj/Debug OBJDIR = obj/Debug
TARGETDIR = ../../bin/linux TARGETDIR = ../../bin/linux
override TARGET = $(TARGETDIR)/genie 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" INCLUDES += -I"../../src/host/lua-5.3.0/src"
ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP -MP $(DEFINES) $(INCLUDES) ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP -MP $(DEFINES) $(INCLUDES)
ALL_ASMFLAGS += $(ASMFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -Wall -Wextra -g $(MPARAM) -Wno-implicit-fallthrough ALL_ASMFLAGS += $(ASMFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -Wall -Wextra -g $(MPARAM) -Wno-implicit-fallthrough

View file

@ -77,6 +77,9 @@
links { "m" } links { "m" }
linkoptions { "-rdynamic" } linkoptions { "-rdynamic" }
configuration "linux"
define { "_FILE_OFFSET_BITS=64" }
configuration "macosx" configuration "macosx"
targetdir "../bin/darwin" targetdir "../bin/darwin"
defines { "LUA_USE_MACOSX" } defines { "LUA_USE_MACOSX" }