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

Andrew Calkin andrew.calkin at gmail.com
Wed Aug 29 18:03:19 CEST 2007


Hi all,

The attached patch is in the GeeXboX tree to allow cross-compiling on
an x86_64 platform. Please consider for inclusion.

//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,11 @@
     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 '_' '-'`
+  if [ `echo $_target | cut -d '-' -f 1` != "x86_64" ]; then
+    host_arch=`echo $_target | cut -d '-' -f 1 | tr '_' '-'`
+  else
+    host_arch=`echo $_target | cut -d '-' -f 1`
+  fi
 fi
 
 echo "Detected operating system: $system_name"


More information about the MPlayer-dev-eng mailing list