mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-27 02:10:55 +08:00
[svn-r6439] Purpose:
Bug fix w/gcc 2.95.x where x<3 Description: -O3 optimization level causes problems for gcc 2.95.2 on eirene Solution: Only enable -O3 if using gcc 2.95.x (where x>=3) or gcc 3 Otherwise, use older setting of -O2 -finline-functions Platforms tested: FreeBSD 4.7 (sleipnir) Linux 2.2 (eirene)
This commit is contained in:
parent
425f0dad1e
commit
55a42d534a
@ -131,7 +131,14 @@ case "$cc_vendor-$cc_version" in
|
||||
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
|
||||
gcc-2.95.3|gcc-2.95.4|gcc-3*)
|
||||
PROD_CFLAGS="-O3 $NOFP"
|
||||
;;
|
||||
*)
|
||||
PROD_CFLAGS="-O2 $NOFP -finline-functions"
|
||||
;;
|
||||
esac
|
||||
PROD_CPPFLAGS=
|
||||
|
||||
# Debug
|
||||
|
Loading…
Reference in New Issue
Block a user