[ardour-dev] optimisation fix buglet

rob+ardour-dev at ereet.co.uk rob+ardour-dev at ereet.co.uk
Sat Aug 14 16:54:05 PDT 2004


re the optimisation CFLAGS autogen.sh patch I sent:

I forgot to escape the $OPT_FLAGS variable.

OPT_FLAGS="$OPT_FLAGS -pipe"

should be:

OPT_FLAGS="\$OPT_FLAGS -pipe"

Sorry for the mistake.

Regards,

Rob

-- 
rob holland [ director @ ereet ltd ]
-------------- next part --------------
--- autogen.sh	2004-07-23 20:34:53.285340768 +0000
+++ autogen.sh.new	2004-07-23 20:35:20.834152712 +0000
@@ -183,6 +183,8 @@
 dnl figure out how best to optimize
 dnl 
 
+gcc_major_version=$($CC -dumpversion | sed -e 's/\..*//')
+
 if test "\$target_cpu" = "powerpc"; then
   AC_DEFINE(POWERPC, 1, "Are we running a ppc CPU?")
   altivecLinux=`cat /proc/cpuinfo | grep -i altivec >/dev/null`
@@ -197,7 +199,7 @@
   else
     OPT_FLAGS="-D_REENTRANT -O3 -mcpu=750 -mmultiple"
   fi
-  OPT_FLAGS="\$OPTIM_FLAGS -mhard-float -mpowerpc-gfxopt"
+  OPT_FLAGS="\$OPT_FLAGS -mhard-float -mpowerpc-gfxopt"
 elif echo \$target_cpu | grep "i*86" >/dev/null; then
   cat /proc/cpuinfo | grep mmx >/dev/null
   if test \$? = 0; then
@@ -217,13 +219,15 @@
   elif test "\$target_cpu" = "i686"; then
     OPT_FLAGS="-D_REENTRANT -O3 -march=i686 -fomit-frame-pointer -ffast-math -fstrength-reduce -fmove-all-movables"
     if test "\$gcc_major_version" = "3"; then
-      OPT_FLAGS="\$OPTIM_FLAGS \$mmx \$sse \$dreidnow"
+      OPT_FLAGS="\$OPT_FLAGS \$mmx \$sse \$dreidnow"
     fi
   else
     OPT_FLAGS="-D_REENTRANT -O3 -fomit-frame-pointer -ffast-math -fstrength-reduce -fmove-all-movables"
   fi
 fi
 
+OPT_FLAGS="$OPT_FLAGS -pipe"
+
 # LARGEFILE_FLAGS="\`getconf LFS_CFLAGS\`"
 LARGEFILE_FLAGS="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
 


More information about the Ardour-Dev mailing list