aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-02-19 19:29:48 +0100
committerStephen Kelly <steveire@gmail.com>2013-02-19 19:29:48 +0100
commit8388b4f7365acecb2725babb7577759f054ce38d (patch)
tree020175daaa8a20db2a23d21964670eefbabb1e60
parent8535f69e03c0167c99a62ab9077d8413162399dc (diff)
downloadextra-cmake-modules-8388b4f7365acecb2725babb7577759f054ce38d.tar.gz
extra-cmake-modules-8388b4f7365acecb2725babb7577759f054ce38d.tar.bz2
Update comment with info about why this exists.
http://thread.gmane.org/gmane.comp.kde.devel.buildsystem/7727
-rw-r--r--kde-modules/KDECompilerSettings.cmake5
1 files changed, 4 insertions, 1 deletions
diff --git a/kde-modules/KDECompilerSettings.cmake b/kde-modules/KDECompilerSettings.cmake
index 05d26b16..16f8c858 100644
--- a/kde-modules/KDECompilerSettings.cmake
+++ b/kde-modules/KDECompilerSettings.cmake
@@ -170,7 +170,10 @@ endif()
if (UNIX)
set ( _KDE4_PLATFORM_DEFINITIONS ${_KDE4_PLATFORM_DEFINITIONS} -D_LARGEFILE64_SOURCE)
-# are there platforms where this is not the case ?
+ # This flag is needed in order to be able to support files > 2GB even on
+ # 32bit platforms. The default is to use the non-64bit aware syscalls on
+ # 32bit platforms, which makes every application to SIGXFSZ (which is
+ # equivalent to a crash) when they see or touch a file > 2GB.
check_cxx_source_compiles("
#include <sys/types.h>
/* Check that off_t can represent 2**63 - 1 correctly.