summaryrefslogtreecommitdiffstats
path: root/bootstrap
diff options
context:
space:
mode:
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap10
1 files changed, 10 insertions, 0 deletions
diff --git a/bootstrap b/bootstrap
index 540743d..4ef0fe5 100755
--- a/bootstrap
+++ b/bootstrap
@@ -1748,6 +1748,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