[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 04/81] move cpu command line setting to the begginin
From: |
Juan Quintela |
Subject: |
[Qemu-devel] [PATCH 04/81] move cpu command line setting to the beggining |
Date: |
Mon, 3 Aug 2009 14:45:55 +0200 |
Signed-off-by: Juan Quintela <address@hidden>
---
configure | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/configure b/configure
index efd8c96..ebec8d6 100755
--- a/configure
+++ b/configure
@@ -21,6 +21,7 @@ TMPSDLLOG="${TMPDIR1}/qemu-conf-sdl-$$-${RANDOM}.log"
trap "rm -f $TMPC $TMPO $TMPE $TMPS $TMPI $TMPSDLLOG; exit" 0 2 3 15
# default parameters
+cpu=""
prefix=""
interp_prefix="/usr/gnemul/qemu-%M"
static="no"
@@ -44,6 +45,8 @@ for opt do
;;
--cc=*) cc="$optarg"
;;
+ --cpu=*) cpu="$optarg"
+ ;;
esac
done
@@ -78,7 +81,10 @@ EOF
$cc $CFLAGS -c -o $TMPO $TMPC > /dev/null 2> /dev/null
}
-if check_define __i386__ ; then
+if test ! -z "$cpu" ; then
+ # command line argument
+ :
+elif check_define __i386__ ; then
cpu="i386"
elif check_define __x86_64__ ; then
cpu="x86_64"
@@ -386,7 +392,7 @@ for opt do
;;
--extra-ldflags=*) EXTRA_LDFLAGS="$optarg"
;;
- --cpu=*) cpu="$optarg"
+ --cpu=*)
;;
--target-list=*) target_list="$optarg"
;;
--
1.6.2.5
- [Qemu-devel] [PATCH v2 00/81] More Makefile/configure simplification, Juan Quintela, 2009/08/03
- [Qemu-devel] [PATCH 01/81] strip binary is not used anywhere, Juan Quintela, 2009/08/03
- [Qemu-devel] [PATCH 03/81] Use CFLAGS from enviroment, ARCH_CFLAGS hasn't been defined yet, Juan Quintela, 2009/08/03
- [Qemu-devel] [PATCH 02/81] oss variable don't exist anymore, Juan Quintela, 2009/08/03
- [Qemu-devel] [PATCH 04/81] move cpu command line setting to the beggining,
Juan Quintela <=
- [Qemu-devel] [PATCH 05/81] move check_linker_flags sooner than starting of printing variables, Juan Quintela, 2009/08/03
- [Qemu-devel] [PATCH 07/81] move checks for bswap32/bswap_32 sooner than starting of printing variables, Juan Quintela, 2009/08/03
- [Qemu-devel] [PATCH 06/81] remove not needed rt variable, Juan Quintela, 2009/08/03
- [Qemu-devel] [PATCH 09/81] We want to add options at the beggining, not at the end of variables, Juan Quintela, 2009/08/03
- [Qemu-devel] [PATCH 08/81] move general CFLAGS/LDFLAGS definitions after last $cc run, Juan Quintela, 2009/08/03
- [Qemu-devel] [PATCH 11/81] move EXTRA_CFLAGS/LDFLAGS to the very beginning, Juan Quintela, 2009/08/03
- [Qemu-devel] [PATCH 14/81] Add CURL_CFLAGS, Juan Quintela, 2009/08/03
- [Qemu-devel] [PATCH 10/81] Remove OS_{CFLAGS, LDFLAGS} and ARCH_{LDFLAGS, CFLAGS}, Juan Quintela, 2009/08/03
- [Qemu-devel] [PATCH 12/81] create compile_object/compile_prog functions, Juan Quintela, 2009/08/03
- [Qemu-devel] [PATCH 13/81] remove unused temporal files, Juan Quintela, 2009/08/03