[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 02/46] Remove SP_CFLAGS and SP_LDFLAGS
From: |
Juan Quintela |
Subject: |
[Qemu-devel] [PATCH 02/46] Remove SP_CFLAGS and SP_LDFLAGS |
Date: |
Fri, 24 Jul 2009 20:30:02 +0200 |
SP_CFLAGS and SP_LDFLAGS are only used as initial values for
ARCH_CFLAGS/ARCH_LDFLAGS. Call it directly ARCH_*. Once there, use the same
indentantion that the rest of the file
Signed-off-by: Juan Quintela <address@hidden>
---
configure | 35 ++++++++++++++++++++++-------------
1 files changed, 22 insertions(+), 13 deletions(-)
diff --git a/configure b/configure
index 2600728..041d30e 100755
--- a/configure
+++ b/configure
@@ -475,13 +475,28 @@ for opt do
--sparc_cpu=*)
sparc_cpu="$optarg"
case $sparc_cpu in
- v7|v8) SP_CFLAGS="-m32 -mcpu=${sparc_cpu} -D__sparc_${sparc_cpu}__";
SP_LDFLAGS="-m32"
- target_arch2="sparc"; cpu="sparc" ;;
- v8plus|v8plusa) SP_CFLAGS="-m32 -mcpu=ultrasparc
-D__sparc_${sparc_cpu}__"; SP_LDFLAGS="-m32"
- target_arch2="sparc"; cpu="sparc" ;;
- v9) SP_CFLAGS="-m64 -mcpu=ultrasparc -D__sparc_${sparc_cpu}__";
SP_LDFLAGS="-m64"
- target_arch2="sparc64"; cpu="sparc64" ;;
- *) echo "undefined SPARC architecture. Exiting";exit 1;;
+ v7|v8)
+ ARCH_CFLAGS="-m32 -mcpu=${sparc_cpu} -D__sparc_${sparc_cpu}__"
+ ARCH_LDFLAGS="-m32"
+ target_arch2="sparc"
+ cpu="sparc"
+ ;;
+ v8plus|v8plusa)
+ ARCH_CFLAGS="-m32 -mcpu=ultrasparc -D__sparc_${sparc_cpu}__"
+ ARCH_LDFLAGS="-m32"
+ target_arch2="sparc"
+ cpu="sparc"
+ ;;
+ v9)
+ ARCH_CFLAGS="-m64 -mcpu=ultrasparc -D__sparc_${sparc_cpu}__"
+ ARCH_LDFLAGS="-m64"
+ target_arch2="sparc64"
+ cpu="sparc64"
+ ;;
+ *)
+ echo "undefined SPARC architecture. Exiting";
+ exit 1
+ ;;
esac
;;
--enable-werror) werror="yes"
@@ -554,9 +569,6 @@ case "$cpu" in
sparc) if test -z "$sparc_cpu" ; then
ARCH_CFLAGS="-m32 -mcpu=ultrasparc -D__sparc_v8plus__"
ARCH_LDFLAGS="-m32"
- else
- ARCH_CFLAGS="${SP_CFLAGS}"
- ARCH_LDFLAGS="${SP_LDFLAGS}"
fi
ARCH_CFLAGS="$ARCH_CFLAGS -ffixed-g2 -ffixed-g3"
if test "$solaris" = "no" ; then
@@ -566,9 +578,6 @@ case "$cpu" in
sparc64) if test -z "$sparc_cpu" ; then
ARCH_CFLAGS="-m64 -mcpu=ultrasparc -D__sparc_v9__"
ARCH_LDFLAGS="-m64"
- else
- ARCH_CFLAGS="${SP_CFLAGS}"
- ARCH_LDFLAGS="${SP_LDFLAGS}"
fi
if test "$solaris" = "no" ; then
ARCH_CFLAGS="$ARCH_CFLAGS -ffixed-g5 -ffixed-g6 -ffixed-g7"
--
1.6.2.5
- [Qemu-devel] Re: [PATCH 45/46] Remove AUDIO_DRIVERS define, (continued)
- [Qemu-devel] Re: [PATCH 45/46] Remove AUDIO_DRIVERS define, Juan Quintela, 2009/07/26
- Re: [Qemu-devel] Re: [PATCH 45/46] Remove AUDIO_DRIVERS define, Avi Kivity, 2009/07/26
- [Qemu-devel] Re: [PATCH 45/46] Remove AUDIO_DRIVERS define, Jan Kiszka, 2009/07/26
- [Qemu-devel] Re: [PATCH 45/46] Remove AUDIO_DRIVERS define, Avi Kivity, 2009/07/26
- [Qemu-devel] Re: [PATCH 45/46] Remove AUDIO_DRIVERS define, malc, 2009/07/26
- [Qemu-devel] Re: [PATCH 45/46] Remove AUDIO_DRIVERS define, Jan Kiszka, 2009/07/26
- [Qemu-devel] Re: [PATCH 45/46] Remove AUDIO_DRIVERS define, malc, 2009/07/26
- Re: [Qemu-devel] Re: [PATCH 45/46] Remove AUDIO_DRIVERS define, Anthony Liguori, 2009/07/26
- [Qemu-devel] Re: [PATCH 45/46] Remove AUDIO_DRIVERS define, Anthony Liguori, 2009/07/26
[Qemu-devel] [PATCH 21/46] rename HAVE_FNMATCH_H to CONFIG_FNMATCH, Juan Quintela, 2009/07/24
[Qemu-devel] [PATCH 02/46] Remove SP_CFLAGS and SP_LDFLAGS,
Juan Quintela <=
[Qemu-devel] [PATCH 05/46] use same algorithm for testing and, Juan Quintela, 2009/07/24
[Qemu-devel] [PATCH 04/46] remove CONFIG_ from VNC_TLS_{LIBS, FLAGS}, Juan Quintela, 2009/07/24
[Qemu-devel] [PATCH 07/46] remove CONFIG_ from BLUEZ_{LIBS,FLAGS}, Juan Quintela, 2009/07/24
[Qemu-devel] [PATCH 01/46] change HOST_SOLARIS to CONFIG_SOLARIS{_VERSION}, Juan Quintela, 2009/07/24
[Qemu-devel] [PATCH 09/46] make oss use OSS_LIBS, Juan Quintela, 2009/07/24
[Qemu-devel] [PATCH 10/46] move printing of config-host.mak variables to end of generation, Juan Quintela, 2009/07/24
[Qemu-devel] [PATCH 06/46] remove CONFIG_ from VNC_SASL_{LIBS, FLAGS}, Juan Quintela, 2009/07/24
[Qemu-devel] [PATCH 08/46] make fmod also use FMOD_{LIBS,CFLAGS}, Juan Quintela, 2009/07/24
[Qemu-devel] [PATCH 15/46] fix indententation, Juan Quintela, 2009/07/24
[Qemu-devel] [PATCH 20/46] rename HAVE_IOVEC to CONFIG_IOVEC, Juan Quintela, 2009/07/24