diff options
author | Brad King <brad.king@kitware.com> | 2021-06-24 12:33:45 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2021-06-24 12:33:57 (GMT) |
commit | 9a704fd37e42c4f68953ae87fea365a675b6c35d (patch) | |
tree | c023473b9b403f7fec69a6089113f8623571820d | |
parent | 0aae790a5edc2f8cc7501f61c011409c55d32d89 (diff) | |
parent | a4b6743a3bba9c591a7750facec2627934879ff0 (diff) | |
download | CMake-9a704fd37e42c4f68953ae87fea365a675b6c35d.zip CMake-9a704fd37e42c4f68953ae87fea365a675b6c35d.tar.gz CMake-9a704fd37e42c4f68953ae87fea365a675b6c35d.tar.bz2 |
Merge topic 'bootstrap-_FILE_OFFSET_BITS-64' into release-3.21
a4b6743a3b bootstrap: Compile with _FILE_OFFSET_BITS=64 on Linux
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !6259
-rwxr-xr-x | bootstrap | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -1747,6 +1747,16 @@ if test "x${cmake_ansi_cxx_flags}" != "x"; then cmake_cxx_flags="${cmake_ansi_cxx_flags} ${cmake_cxx_flags}" fi +system_flags='' +case "${cmake_system}" in + # Ensure filesystem access uses 64-bit offsets even on 32-bit hosts. + *Linux*) system_flags='-D_FILE_OFFSET_BITS=64' ;; +esac +if test "x${system_flags}" != "x"; then + cmake_c_flags="${cmake_c_flags} ${system_flags}" + cmake_cxx_flags="${cmake_cxx_flags} ${system_flags}" +fi + if test "x${cmake_c_flags}" != "x"; then cmake_c_flags="${cmake_c_flags} " fi |