Skip to content

Commit ebf6ff7

Browse files
authored
Merge pull request #799 from CodethinkLabs/lawrence/64bit_file_offset
Add -D_FILE_OFFSET_BITS=64
2 parents 557b2fd + c8de1f2 commit ebf6ff7

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

cmake/modules/CompilerOptions.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ set(CMAKE_POSITION_INDEPENDENT_CODE ON)
5454
# continue to check with modern compiler versions.
5555
set(STDC_HEADERS 1)
5656

57+
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_FILE_OFFSET_BITS=64")
58+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_FILE_OFFSET_BITS=64")
59+
5760
# acx_strict.m4
5861
if(ENABLE_STRICT)
5962
enable_cxx_compiler_flag_if_supported(-Wall)

configure.ac

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ AC_PROG_CXX
4747
PKG_PROG_PKG_CONFIG
4848

4949
# Compiler flags
50+
CFLAGS="${CFLAGS} -D_FILE_OFFSET_BITS=64"
51+
CXXFLAGS="${CXXFLAGS} -D_FILE_OFFSET_BITS=64"
5052
ACX_PEDANTIC
5153
ACX_STRICT
5254
ACX_64BIT

0 commit comments

Comments
 (0)