This patch patch applies on the latest git tree.
This adds more cross compile capability to the user diretory
configure script.
Patch created with git this time :-)
Signed-off-by: Jerone Young <[EMAIL PROTECTED]>
diff --git a/user/configure b/user/configure
index 20b9367..ff10268 100755
--- a/user/configure
+++ b/user/configure
@@ -4,7 +4,8 @@ prefix=/usr/local
kerneldir=/lib/modules/$(uname -r)/build
cc=gcc
ld=ld
-arch=`uname -m | sed -e s/i.86/x86/`
+arch=`uname -m | sed -e s/i.86/i386/`
+cross_prefix=
usage() {
cat <<-EOF
@@ -12,6 +13,7 @@ usage() {
Options include:
--arch=ARCH architecture to compile for ($arch)
+ --cross-prefix=PREFIX cross compiler prefix
--cc=CC c compiler to use ($cc)
--ld=LD ld linker to use ($ld)
--prefix=PREFIX where to install things ($prefix)
@@ -37,6 +39,9 @@ while [[ "$1" = -* ]]; do
--arch)
arch="$arg"
;;
+ --cross-prefix)
+ cross_prefix="$arg"
+ ;;
--cc)
cc="$arg"
;;
@@ -56,6 +61,6 @@ cat <<EOF > config.mak
PREFIX=$prefix
KERNELDIR=$(readlink -f $kerneldir)
ARCH=$arch
-CC=$cc
-LD=$ld
+CC=$cross_prefix$cc
+LD=$cross_prefix$ld
EOF
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
kvm-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-devel