aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortradke <tradke@7842ec3a-9562-4be5-9c5b-06ba18f2b668>2002-03-10 10:27:35 +0000
committertradke <tradke@7842ec3a-9562-4be5-9c5b-06ba18f2b668>2002-03-10 10:27:35 +0000
commit1111ce1fb848e6490b311b1ec5ba4363765e0333 (patch)
treec2e6d3bd1e95c68c94e9c7545b564702334327b6
parent9633406607be579db56976e2f8b1623a8ec8d506 (diff)
Added CFLAGS for Large File System support.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGHIO/IOHDF5Util/trunk@57 7842ec3a-9562-4be5-9c5b-06ba18f2b668
-rw-r--r--src/make.code.defn7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/make.code.defn b/src/make.code.defn
index 4f85730..4b66372 100644
--- a/src/make.code.defn
+++ b/src/make.code.defn
@@ -3,3 +3,10 @@
# Source files in this directory
SRCS = Startup.c DumpUtils.c DumpVar.c RecoverVar.c ParseVars.c
+
+# Extend CFLAGS if HDF5 library was built with LFS support
+LFS_support := $(shell grep _LARGEFILE_SOURCE $(strip $(HDF5_LIB_DIRS))/libhdf5.settings)
+
+ifneq ($(strip $(LFS_support)),)
+ CFLAGS += -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
+endif