summaryrefslogtreecommitdiffstats
path: root/config/gnu-flags
diff options
context:
space:
mode:
authorBill Wendling <wendling@ncsa.uiuc.edu>2001-05-08 18:42:42 (GMT)
committerBill Wendling <wendling@ncsa.uiuc.edu>2001-05-08 18:42:42 (GMT)
commit93129f271e71e669a3218c93a71d361155cb4c7e (patch)
tree06d73ca87a56c4c5047408026374980197ed7af7 /config/gnu-flags
parent4a72a04048b88c49a4bea654b5256aa6eaac2663 (diff)
downloadhdf5-93129f271e71e669a3218c93a71d361155cb4c7e.zip
hdf5-93129f271e71e669a3218c93a71d361155cb4c7e.tar.gz
hdf5-93129f271e71e669a3218c93a71d361155cb4c7e.tar.bz2
[svn-r3892] Purpose:
Better Mouse Trap^W^WBug Fix Description: Instead of having the large file support stuff be in the config/gnu-flags directory, I added it to the configure.in file so that it first checks for the syscall ``getdents64()''. If it finds it, then it removes the ``-malign-double'' flag if the GCC compiler is 2.95.x since this flag doesn't play well with the LFS stuff. Solution: Added test for getdents64(), if found it removes the -malign-double flag if the compiler is 2.95.x. This is done in the configure.in file. The gnu-flags file is returned to normal. A new field is added to the H5config.h.in file because of the getdents64 check. Platforms tested: Linux
Diffstat (limited to 'config/gnu-flags')
-rw-r--r--config/gnu-flags19
1 files changed, 2 insertions, 17 deletions
diff --git a/config/gnu-flags b/config/gnu-flags
index 9ad36b2..4d61105 100644
--- a/config/gnu-flags
+++ b/config/gnu-flags
@@ -101,24 +101,9 @@ case "$host_os-$host_cpu" in
;;
*-i686)
- # Large file system support has to be compiled with these flags.
- LFS_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE"
case "$cc_vendor-$cc_version" in
- gcc-2.95*)
- case "`uname -r`" in
- # For kernels 2.2 and below, we don't have support
- # for >2GB files. We care only about >2.3.
- [2-9].[3-9].*)
- # The -malign-double flag is bad for our
- # architecture with large file support. Define
- # these flags so that we can have large file
- # support in the library.
- ARCH=${ARCH:="-march=i686 $LFS_FLAGS"}
- ;;
- *)
- ARCH=${ARCH:="-march=i686 -malign-double"}
- ;;
- esac
+ gcc-2.9[56]*)
+ ARCH=${ARCH:="-march=i686 -malign-double"}
;;
gcc-*|egcs-*|pgcc-*)
ARCH=${ARCH:="-mcpu=pentiumpro -march=pentiumpro -malign-double"}