Update user configure script
PATCH 1/2 Update user configure script
This adds the ability to change CC, ARCH, & LD variables with configure script in user directory.
Signed-off-by Jerone Young <jyoung5-r/[email protected]>
user/configure +18 -1
@@ -2,13 +2,18 @@ prefix=/usr/local kerneldir=/lib/modules/$(uname -r)/build +cc=gcc +ld=ld +arch=`uname -m | sed -e s/i.86/x86/` usage() { cat <<-EOF Usage: $0 [options] Options include: - + --arch=ARCH architecture to compile for ($arch) + --cc=CC c compiler to use ($cc) + --ld=LD ld linker to use ($ld) --prefix=PREFIX where to install things ($prefix) --kerneldir=DIR kernel build directory for kvm.h ($kerneldir) EOF
@@ -29,6 +34,15 @@ while [[ "$1" = -* ]]; do --kerneldir) kerneldir="$arg" ;; + --arch) + arch="$arg" + ;; + --cc) + cc="$arg" + ;; + --ld) + ld="$arg" + ;; --help) usage ;;
@@ -41,4 +55,7 @@ done cat <<EOF > config.mak PREFIX=$prefix KERNELDIR=$(readlink -f $kerneldir) +ARCH=$arch +CC=$cc +LD=$ld EOF
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
kvm-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-devel
Avi Kivity
AppliedQuoted 3 lines · Jerone Young
This adds the ability to change CC, ARCH, & LD variables with configure script in user directory.
Applied, thanks.
Signature · 8 lines
Any sufficiently difficult bug is indistinguishable from a feature. ------------------------------------------------------------------------- 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/