mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-02-17 16:10:24 +08:00
[svn-r9662] Purpose:
Bug fix. Description: MIPSpro Compiler 7.4.x starts to support C99 features but stdint.h has a "guard" in it that will #error if cc is invoked without asking for C99 standard. But it does not result with a non-zero compiler exit code, thus configure thought it is okay to use header file stdint.h. This causes problems later. Solution: Default to use the C99 compiler if available. Platforms tested: Tested in Sandia tesla machine which is a new SGI machine.
This commit is contained in:
parent
f61ad85565
commit
2d2522f666
@ -8,8 +8,12 @@
|
||||
|
||||
# Use SGI supplied C compiler by default. There is no ranlib
|
||||
if test "X-" = "X-$CC"; then
|
||||
CC='cc'
|
||||
CC_BASENAME=cc
|
||||
CC='cc'
|
||||
CC_BASENAME=cc
|
||||
# use c99 compiler if available.
|
||||
if `c99 -version >/dev/null 2>&1` ; then
|
||||
CC='c99'
|
||||
fi
|
||||
fi
|
||||
RANLIB=:
|
||||
|
||||
@ -61,13 +65,10 @@ case "X-$CC_BASENAME" in
|
||||
# 85: duplicate definition preemption (from -lnsl)
|
||||
# 134: duplicate weak definition preemption (from -lnsl)
|
||||
CFLAGS="$CFLAGS -Wl,-woff,47,-woff,84,-woff,85,-woff,134"
|
||||
|
||||
# Always turn on full warnings
|
||||
CFLAGS="$CFLAGS -fullwarn"
|
||||
fi
|
||||
|
||||
# Extra debugging flags
|
||||
DEBUG_CFLAGS="-g"
|
||||
DEBUG_CFLAGS="-g -fullwarn"
|
||||
DEBUG_CPPFLAGS=
|
||||
|
||||
# Extra production flags
|
||||
|
Loading…
Reference in New Issue
Block a user