aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortradke <tradke@4825ed28-b72c-4eae-9704-e50c059e567d>2002-03-10 10:27:18 +0000
committertradke <tradke@4825ed28-b72c-4eae-9704-e50c059e567d>2002-03-10 10:27:18 +0000
commit3e4bca53fb0b5470e2ae833b9720e17360ff5864 (patch)
treee63485fe7d71991903d6efc51089bcfa0e2f1301
parent32f3aac693624a83f352b87dfb86d9489d8452e3 (diff)
Added CFLAGS for Large File System support.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGHIO/IOHDF5/trunk@110 4825ed28-b72c-4eae-9704-e50c059e567d
-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 2afacc6..160fa54 100644
--- a/src/make.code.defn
+++ b/src/make.code.defn
@@ -3,3 +3,10 @@
# Source files in this directory
SRCS = Startup.c Output.c Write.c DumpGH.c RecoverGH.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