]> git.ipfire.org Git - thirdparty/xz.git/commit
CMake: Use -D_FILE_OFFSET_BITS=64 if (and only if) needed.
authorLasse Collin <lasse.collin@tukaani.org>
Tue, 26 Sep 2023 21:58:17 +0000 (00:58 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Tue, 7 May 2024 14:47:10 +0000 (17:47 +0300)
commitd9d08fb479ad5d431049ca162c0d52e6dd9ed82b
tree751e044badea8e729cad9dedab4f746f5607598a
parent3c026350e8d23ddaca35e34477746b428563b933
CMake: Use -D_FILE_OFFSET_BITS=64 if (and only if) needed.

A CMake option LARGE_FILE_SUPPORT is created if and only if
-D_FILE_OFFSET_BITS=64 affects sizeof(off_t).

This is needed on many 32-bit platforms and even with 64-bit builds
with MinGW-w64 to get support for files larger than 2 GiB.

(cherry picked from commit 36fabdbe67c8a8fbdc3ac695a91fc443a1328cc4)
CMakeLists.txt
cmake/tuklib_large_file_support.cmake [new file with mode: 0644]