14 |
if test "x$DEVEL" != x ; then |
if test "x$DEVEL" != x ; then |
15 |
FFLAGS='-g -Wall -Wextra -fbounds-check -ftrace=full -finteger=-99999 -flogical=false -freal=nan' |
FFLAGS='-g -Wall -Wextra -fbounds-check -ftrace=full -finteger=-99999 -flogical=false -freal=nan' |
16 |
else |
else |
17 |
FFLAGS='' |
FFLAGS='-Wunused' |
18 |
fi |
fi |
19 |
|
|
20 |
# "warning: -Wuninitialized is not supported without -O" |
# "warning: -Wuninitialized is not supported without -O" |
28 |
has_sse2=f |
has_sse2=f |
29 |
grep flags /proc/cpuinfo | grep sse2 > /dev/null 2>&1 && has_sse2=t |
grep flags /proc/cpuinfo | grep sse2 > /dev/null 2>&1 && has_sse2=t |
30 |
if test "x$has_sse2" = xt ; then |
if test "x$has_sse2" = xt ; then |
31 |
FFLAGS='-Wunused -mfpmath=sse -msse -msse2' |
FOPTIM='-mfpmath=sse -msse -msse2' |
32 |
else |
else |
33 |
FFLAGS='-Wunused -ffloat-store' |
FOPTIM='-ffloat-store' |
34 |
fi |
fi |
35 |
# echo 'FFLAGS="'$FFLAGS'"' |
# echo 'FFLAGS="'$FFLAGS'"' |
36 |
FOPTIM='-O0 -malign-double' |
FOPTIM="-O0 -malign-double $FOPTIM" |
37 |
fi |
fi |
38 |
F90FLAGS=$FFLAGS |
F90FLAGS=$FFLAGS |
39 |
F90OPTIM=$FOPTIM |
F90OPTIM=$FOPTIM |