aboutsummaryrefslogtreecommitdiff
path: root/src/make.code.defn
diff options
context:
space:
mode:
Diffstat (limited to 'src/make.code.defn')
-rw-r--r--src/make.code.defn6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/make.code.defn b/src/make.code.defn
index 623786d..2f68abd 100644
--- a/src/make.code.defn
+++ b/src/make.code.defn
@@ -5,8 +5,6 @@
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 -s _LARGEFILE_SOURCE $(strip $(HDF5_LIB_DIRS))/libhdf5.settings)
-
-ifneq ($(strip $(LFS_support)),)
- CFLAGS += -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
+ifneq ($(strip $(HDF5_LFS_FLAGS)),)
+ CFLAGS += $(HDF5_LFS_FLAGS)
endif