diff options
author | Juan Quintela | 2009-08-03 14:45:55 +0200 |
---|---|---|
committer | Anthony Liguori | 2009-08-10 20:05:32 +0200 |
commit | 2ff6b91e4f039e50484d0a90da802f4747dff82d (patch) | |
tree | 0955a840f710199e8c537155c39207dbc4163cde /configure | |
parent | Use CFLAGS from enviroment, ARCH_CFLAGS hasn't been defined yet (diff) | |
download | qemu-2ff6b91e4f039e50484d0a90da802f4747dff82d.tar.gz qemu-2ff6b91e4f039e50484d0a90da802f4747dff82d.tar.xz qemu-2ff6b91e4f039e50484d0a90da802f4747dff82d.zip |
move cpu command line setting to the beggining
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -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" ;; |