[MPlayer-dev-eng] [PATCH] Cross compile configure patch

Andrew Calkin andrew.calkin at gmail.com
Thu Aug 30 09:58:52 CEST 2007


On Wed, Aug 29, 2007 at 07:00:09PM +0200, Reimar Döffinger wrote:
> Horrible. At least simplify, e.g.
> host_arch=`echo $_target | cut -d '-' -f 1`
> ...
> (also saves you the else part).
> And use test, not [

*cough* yes, quite. I'll inspect these things more closely before
forwarding things on. How about the attached?

//Andrew
-------------- next part --------------
diff -Naur MPlayer-1.0rc1.orig/configure MPlayer-1.0rc1/configure
--- MPlayer-1.0rc1.orig/configure	2007-04-13 19:18:26.000000000 +0200
+++ MPlayer-1.0rc1/configure	2007-04-13 19:18:36.000000000 +0200
@@ -1281,7 +1281,10 @@
     mingw32msvc) system_name=MINGW32 ;;
   esac
   # We need to convert underscores so that values like k6-2 and pentium-mmx can be passed
-  host_arch=`echo $_target | cut -d '-' -f 1 | tr '_' '-'`
+  host_arch=`echo $_target | cut -d '-' -f 1`
+  if test `echo $host_arch` != "x86_64" ; then
+    host_arch=`echo $host_arch | tr '_' '-'`
+  fi
 fi
 
 echo "Detected operating system: $system_name"


More information about the MPlayer-dev-eng mailing list