diff options
author | tradke <tradke@4825ed28-b72c-4eae-9704-e50c059e567d> | 2002-03-11 11:07:39 +0000 |
---|---|---|
committer | tradke <tradke@4825ed28-b72c-4eae-9704-e50c059e567d> | 2002-03-11 11:07:39 +0000 |
commit | 5cb06b5bd1a18384113a72cf0762bd6dc6b43de8 (patch) | |
tree | c964e61973bec66b79a2e6df5574385d1a15d77b | |
parent | 3e4bca53fb0b5470e2ae833b9720e17360ff5864 (diff) |
Add CFLAGS for LFS support when building the utility tools.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGHIO/IOHDF5/trunk@111 4825ed28-b72c-4eae-9704-e50c059e567d
-rw-r--r-- | src/make.configuration.defn | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/make.configuration.defn b/src/make.configuration.defn index eeb57e8..8598186 100644 --- a/src/make.configuration.defn +++ b/src/make.configuration.defn @@ -7,3 +7,10 @@ ifeq ($(findstring CactusExternal/FlexIO,$(THORNS)),CactusExternal/FlexIO) ALL_UTILS += hdf5_convert_from_ieeeio FLEXIO_INC_DIRS = $(CCTK_HOME)$(DIRSEP)arrangements/CactusExternal/FlexIO/src endif + +# 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 |