From 69588a7dda1dbd89b955fa6a2d8f4b3a8af73628 Mon Sep 17 00:00:00 2001 From: Henrik Gramner Date: Fri, 21 May 2010 15:30:26 +0200 Subject: [PATCH] Fix performance regression in r1582 Set the correct compiler flags. --- configure | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/configure b/configure index 16c20891..b35d120c 100755 --- a/configure +++ b/configure @@ -297,10 +297,10 @@ case $host_cpu in ARCH="X86" AS="yasm" ASFLAGS="$ASFLAGS -O2" - if [[ "$asm" == yes && "$CFLAGS" != *-march* ]]; then + if [[ "$asm" == auto && "$CFLAGS" != *-march* ]]; then CFLAGS="$CFLAGS -march=i686" fi - if [[ "$asm" == yes && "$CFLAGS" != *-mfpmath* ]]; then + if [[ "$asm" == auto && "$CFLAGS" != *-mfpmath* ]]; then CFLAGS="$CFLAGS -mfpmath=sse -msse" fi if [ "$SYS" = MACOSX ]; then @@ -329,7 +329,7 @@ case $host_cpu in ;; powerpc|powerpc64) ARCH="PPC" - if [ $asm = yes ] ; then + if [ $asm = auto ] ; then define HAVE_ALTIVEC AS="${AS-${cross_prefix}gcc}" if [ $SYS = MACOSX ] ; then @@ -341,7 +341,7 @@ case $host_cpu in fi ;; sparc) - if [ $asm = yes ] && test "$(uname -m)" = "sun4u"; then + if [ $asm = auto ] && test "$(uname -m)" = "sun4u"; then ARCH="UltraSparc" CFLAGS="$CFLAGS -mcpu=ultrasparc" LDFLAGS="$LDFLAGS -mcpu=ultrasparc" -- 2.47.3