summaryrefslogtreecommitdiffstats
path: root/config/gnu-flags
diff options
context:
space:
mode:
authorBill Wendling <wendling@ncsa.uiuc.edu>2001-08-23 17:14:06 (GMT)
committerBill Wendling <wendling@ncsa.uiuc.edu>2001-08-23 17:14:06 (GMT)
commit1b89fa3640004e4989b89f79031b4b93792ee4d9 (patch)
tree90106b1b6c8a81b2814a8b3ebd793e58c1912359 /config/gnu-flags
parent1a779d0b8a499f4f936d9afaad582b5bf8203ac4 (diff)
downloadhdf5-1b89fa3640004e4989b89f79031b4b93792ee4d9.zip
hdf5-1b89fa3640004e4989b89f79031b4b93792ee4d9.tar.gz
hdf5-1b89fa3640004e4989b89f79031b4b93792ee4d9.tar.bz2
[svn-r4408]
Purpose: Feature Addition Description: Added support for gcc 3.0.x. GCC 3.0.x supports the C99 specification. The "-std=c99" gets rid of those annoying "warning long long not supported by ANSI standard" messages. Platforms tested: Linux and gcc 3.0.1
Diffstat (limited to 'config/gnu-flags')
-rw-r--r--config/gnu-flags11
1 files changed, 9 insertions, 2 deletions
diff --git a/config/gnu-flags b/config/gnu-flags
index 22ed2be..1938563 100644
--- a/config/gnu-flags
+++ b/config/gnu-flags
@@ -89,7 +89,7 @@ case "$host_os-$host_cpu" in
*Pro*|*II*)
# This check should be kept in sync with the *-i686 check below
case "$cc_vendor-$cc_version" in
- gcc-2.95*)
+ gcc-2.95*|gcc-3*)
ARCH=${ARCH:="-march=i686"}
;;
gcc-*|egcs-*|pgcc-*)
@@ -102,7 +102,7 @@ case "$host_os-$host_cpu" in
*-i686)
case "$cc_vendor-$cc_version" in
- gcc-2.9[56]*)
+ gcc-2.9[56]*|gcc-3*)
ARCH=${ARCH:="-march=i686"}
;;
gcc-*|egcs-*|pgcc-*)
@@ -177,6 +177,13 @@ case "$cc_vendor-$cc_version" in
cc_flags_set=yes
;;
+ gcc-3.*)
+ CFLAGS="`echo $CFLAGS | sed -e 's/-ansi/-std=c99/g'`"
+
+ # Flags are set
+ cc_flags_set=yes
+ ;;
+
egcs-2.*|pgcc-2.*)
# General
CFLAGS="$CFLAGS $ARCH -Wsign-compare"