]> git.videolan.org Git - x264.git/commitdiff
Fix performance regression in r1582
authorHenrik Gramner <hengar-6@student.ltu.se>
Fri, 21 May 2010 13:30:26 +0000 (15:30 +0200)
committerJason Garrett-Glaser <darkshikari@gmail.com>
Fri, 21 May 2010 17:31:19 +0000 (10:31 -0700)
Set the correct compiler flags.

configure

index 16c20891be5dce7706052e3572436bb73f656227..b35d120c048ee21b8bf67e741c25d7fae332a32e 100755 (executable)
--- 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"