From 139688863f191366fe27fbab9654a52285e63c11 Mon Sep 17 00:00:00 2001 From: Robb Matzke Date: Tue, 27 Jul 1999 15:33:40 -0500 Subject: [svn-r1547] Changes since 19990723 ---------------------- NOTE: These bug fixes but have been applied only to the 1.3 branch per Albert's request. ./config/gnu-flags [1.3] Added support for gcc-2.95 by adding full optimization and debugging flags and applied a patch from Marcus Daniels. ./src/Makefile.in [1.3] Removes the `libhdf5.settings' file for `make clean'. --- config/gnu-flags | 21 +++++++++++++++++++++ src/Makefile.in | 3 ++- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/config/gnu-flags b/config/gnu-flags index 93f044a..e1fa51d 100644 --- a/config/gnu-flags +++ b/config/gnu-flags @@ -27,6 +27,7 @@ if test X = "X$cc_flags_set"; then cc_vers_major=`echo $cc_version | cut -f1 -d.` cc_vers_minor=`echo $cc_version | cut -f2 -d.` cc_vers_patch=`echo $cc_version | cut -f3 -d.` + test -n "$cc_vers_patch" || cc_vers_patch=0 cc_vers_all=`expr $cc_vers_major '*' 1000000 + $cc_vers_minor '*' 1000 + $cc_vers_patch` fi @@ -120,6 +121,26 @@ case "$cc_vendor-$cc_version" in cc_flags_set=yes ;; + gcc-2.95) + # General + CFLAGS="$CFLAGS -Wsign-compare" + + # Production + PROD_CFLAGS="$ARCH -O6 $NOFP -Wno-shadow" + PROD_CPPFLAGS= + + # Debug + DEBUG_CFLAGS="-g -fverbose-asm -Wno-shadow" + DEBUG_CPPFLAGS="-DH5F_OPT_SEEK=0 -DH5F_LOW_DFLT=H5F_LOW_SEC2" + + # Profile + PROFILE_CFLAGS=-pg + PROFILE_CPPFLAGS= + + # Flags are set + cc_flags_set=yes + ;; + egcs-2.*|pgcc-2.*) # General CFLAGS="$CFLAGS -Wsign-compare" diff --git a/src/Makefile.in b/src/Makefile.in index 8c1b288..15d5172 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -16,8 +16,9 @@ TRACE=perl $(top_srcdir)/bin/trace ## Add `-I.' to the C preprocessor flags. CPPFLAGS=-I. -I@srcdir@ @CPPFLAGS@ -## This is our main target: +## This is our main target, but also remove the settings file when cleaning. LIB=libhdf5.la +CLEAN=libhdf5.settings ## Source and object files for the library (lexicographically)... LIB_SRC=H5.c H5A.c H5AC.c H5B.c H5D.c H5E.c H5F.c H5Farray.c H5Fcore.c \ -- cgit v0.12