Fixed #2984304. Fix compilation errors reported by gcc 4.5.0.
[dirac-research.git] / make_debug.sh
blob6131ea109bcf250445add0e5b90429ab5d39bbe1
1 #! /bin/sh
3 # Build debuggable, profilable versions of the command-line encoder and decoder
5 # Check for argument
7 if test x"$1" = "x"; then
8 echo
9 echo "usage: make_debug.sh architecture-to-target"
10 echo
11 echo "E.g. make_debug.sh k8 # opteron CPU"
12 echo " make_debug.sh pentium4"
13 echo " make_debug.sh athlon-xp"
14 echo
15 echo "For full details on GCC's targets see \"info gcc\" - Invoking GCC"
16 exit 1
19 make CXXFLAGS="-g -pg -O3 -ffast-math -march=$1"