[x264-devel] commit: Fix performance regression in r1582 (Henrik Gramner )

git at videolan.org git at videolan.org
Fri May 21 19:31:59 CEST 2010


x264 | branch: master | Henrik Gramner <hengar-6 at student.ltu.se> | Fri May 21 15:30:26 2010 +0200| [69588a7dda1dbd89b955fa6a2d8f4b3a8af73628] | committer: Jason Garrett-Glaser 

Fix performance regression in r1582
Set the correct compiler flags.

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=69588a7dda1dbd89b955fa6a2d8f4b3a8af73628
---

 configure |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/configure b/configure
index 16c2089..b35d120 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"



More information about the x264-devel mailing list