From 1111ce1fb848e6490b311b1ec5ba4363765e0333 Mon Sep 17 00:00:00 2001 From: tradke Date: Sun, 10 Mar 2002 10:27:35 +0000 Subject: Added CFLAGS for Large File System support. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGHIO/IOHDF5Util/trunk@57 7842ec3a-9562-4be5-9c5b-06ba18f2b668 --- src/make.code.defn | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- cgit v1.2.3