Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
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"
;;
--cc=*) cc="$optarg"
;;
+ --cpu=*) cpu="$optarg"
+ ;;
esac
done
$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"
;;
--extra-ldflags=*) EXTRA_LDFLAGS="$optarg"
;;
- --cpu=*) cpu="$optarg"
+ --cpu=*)
;;
--target-list=*) target_list="$optarg"
;;