diff options
-rw-r--r-- | src/make.code.defn | 7 |
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 |