diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2004-07-15 21:56:54 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2004-07-15 21:56:54 (GMT) |
commit | a6889aa255e45c4fcf004ddf9e25a2b2cae06513 (patch) | |
tree | 542ba88e52245483c9a9dc6877e7ca2bb01edc3e /config | |
parent | a8994e3c71fd14de9990efec21d54837094d9362 (diff) | |
download | hdf5-a6889aa255e45c4fcf004ddf9e25a2b2cae06513.zip hdf5-a6889aa255e45c4fcf004ddf9e25a2b2cae06513.tar.gz hdf5-a6889aa255e45c4fcf004ddf9e25a2b2cae06513.tar.bz2 |
[svn-r8885] Purpose:
Bug fix
Description:
It uses the value of $ARCH as a gcc option but the linux clusters
at NCSA define $ARCH as environment variable with values that are
not a valid compiler option. That caused the configure to fail
because it was not able to compile at all.
Solution:
Change ARCH to lower case $arch (convention dictates environment
variables are upper cases.) Also preset $arch to null and do not
honor any pass it values.
Platforms tested:
Attempted to run h5committest but sol was failing due to /tmp
filled. Copper failed in parallel test but that could be a
system problem since it was totally loaded. Verbena failed in
h5diff which has nothing to do with the change.
Tested in TG_NCSA (gcc and ecc)--both failed in h5diff. Again,
nothing to do with the change. So, it is safe to commit this
change.
Misc. update:
Diffstat (limited to 'config')
-rw-r--r-- | config/gnu-flags | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/config/gnu-flags b/config/gnu-flags index bf9d856..5568d24 100644 --- a/config/gnu-flags +++ b/config/gnu-flags @@ -89,6 +89,7 @@ EOF fi +arch= # Architecture-specific flags case "$host_os-$host_cpu" in # FreeBSD sets the information from "uname -m" to the general machine @@ -100,25 +101,20 @@ case "$host_os-$host_cpu" in case "$host_cpu_model" in # Hmm.. this might not catch Celerons, but it won't hurt them either... *Pro*|*II*|*III*|*IV*|*Athlon*) - ARCH=${ARCH:="-march=i686"} + arch="-march=i686" ;; esac ;; *-i686) - ARCH=${ARCH:="-march=i686"} + arch="-march=i686" ;; esac # Host-specific flags case "`hostname`" in sleipnir.ncsa.uiuc.edu) -# case "$cc_vendor-$cc_version" in -# gcc-3*) -# ARCH="`echo $ARCH | sed -e 's/i686/athlon-mp/g'`" -# ;; -# esac - ARCH="$ARCH -pipe" + arch="$arch -pipe" ;; esac @@ -126,7 +122,7 @@ esac case "$cc_vendor-$cc_version" in gcc*|egcs*|pgcc*) # General - CFLAGS="$CFLAGS $ARCH -ansi -pedantic -Wall -W -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs -Winline" + CFLAGS="$CFLAGS $arch -ansi -pedantic -Wall -W -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs -Winline" # Production case "$cc_vendor-$cc_version" in |