[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 08/81] move general CFLAGS/LDFLAGS definitions after
From: |
Juan Quintela |
Subject: |
[Qemu-devel] [PATCH 08/81] move general CFLAGS/LDFLAGS definitions after last $cc run |
Date: |
Mon, 3 Aug 2009 14:45:59 +0200 |
Signed-off-by: Juan Quintela <address@hidden>
---
configure | 63 +++++++++++++++++++++++++++++++-----------------------------
1 files changed, 33 insertions(+), 30 deletions(-)
diff --git a/configure b/configure
index 3b46695..7b0ff90 100755
--- a/configure
+++ b/configure
@@ -530,36 +530,6 @@ for opt do
esac
done
-# default flags for all hosts
-CFLAGS="$CFLAGS -g -fno-strict-aliasing"
-if test "$debug" = "no" ; then
- CFLAGS="$CFLAGS -O2"
-fi
-CFLAGS="$CFLAGS -Wall -Wundef -Wendif-labels -Wwrite-strings
-Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls"
-LDFLAGS="$LDFLAGS -g"
-
-# Consult white-list to determine whether to enable werror
-# by default. Only enable by default for git builds
-if test -z "$werror" ; then
- z_version=`cut -f3 -d. $source_path/VERSION`
- if test "$z_version" = "50" -a \
- "$linux" = "yes" ; then
- werror="yes"
- else
- werror="no"
- fi
-fi
-
-if test "$werror" = "yes" ; then
- CFLAGS="$CFLAGS -Werror"
-fi
-
-if test "$solaris" = "no" ; then
- if ld --version 2>/dev/null | grep "GNU ld" >/dev/null 2>/dev/null ; then
- LDFLAGS="$LDFLAGS -Wl,--warn-common"
- fi
-fi
-
#
# If cpu ~= sparc and sparc_cpu hasn't been defined, plug in the right
# ARCH_CFLAGS/ARCH_LDFLAGS (assume sparc_v8plus for 32-bit and sparc_v9 for
64-bit)
@@ -1441,6 +1411,39 @@ else
exit 1
fi
+# End of CC checks
+# After here, no more $cc or $ld runs
+
+# default flags for all hosts
+CFLAGS="$CFLAGS -g -fno-strict-aliasing"
+if test "$debug" = "no" ; then
+ CFLAGS="$CFLAGS -O2"
+fi
+CFLAGS="$CFLAGS -Wall -Wundef -Wendif-labels -Wwrite-strings
-Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls"
+LDFLAGS="$LDFLAGS -g"
+
+# Consult white-list to determine whether to enable werror
+# by default. Only enable by default for git builds
+if test -z "$werror" ; then
+ z_version=`cut -f3 -d. $source_path/VERSION`
+ if test "$z_version" = "50" -a \
+ "$linux" = "yes" ; then
+ werror="yes"
+ else
+ werror="no"
+ fi
+fi
+
+if test "$werror" = "yes" ; then
+ CFLAGS="$CFLAGS -Werror"
+fi
+
+if test "$solaris" = "no" ; then
+ if $ld --version 2>/dev/null | grep "GNU ld" >/dev/null 2>/dev/null ; then
+ LDFLAGS="$LDFLAGS -Wl,--warn-common"
+ fi
+fi
+
if test "$mingw32" = "yes" ; then
if test -z "$prefix" ; then
prefix="c:\\\\Program Files\\\\Qemu"
--
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, 2009/08/03
- [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 <=
- [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
- [Qemu-devel] [PATCH 15/81] __sparc_*__ is defined through -D__sparc_*__, Juan Quintela, 2009/08/03
- [Qemu-devel] [PATCH 16/81] move mingw32 code after selection of OS, Juan Quintela, 2009/08/03
- [Qemu-devel] [PATCH 18/81] refactor kqemu selection for both mingw32, Juan Quintela, 2009/08/03
- [Qemu-devel] [PATCH 19/81] move sparc_cpu arg parsing to the begining, Juan Quintela, 2009/08/03
- [Qemu-devel] [PATCH 17/81] This variables can't be set here, Juan Quintela, 2009/08/03