CMake: Build lagom with -D_FILE_OFFSET_BITS=64 on Linux

32-bit glibc limits off_t to 32 bits without this definition, which
makes working with large files rather difficult.
This commit is contained in:
implicitfield 2024-01-16 14:56:23 +04:00 committed by Andrew Kaster
parent a7db718ffb
commit d3c6e31bf3
Notes: sideshowbarker 2024-07-16 22:18:54 +09:00

View File

@ -8,6 +8,10 @@ if (NOT WIN32)
add_compile_options(-fPIC)
endif()
if (LINUX)
add_compile_options(-D_FILE_OFFSET_BITS=64)
endif()
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
add_compile_options(-ggdb3)
add_compile_options(-Og)