* [Qemu-devel] [5241] Enable ld flag --warn-common
@ 2008-09-17 19:05 Blue Swirl
0 siblings, 0 replies; only message in thread
From: Blue Swirl @ 2008-09-17 19:05 UTC (permalink / raw)
To: qemu-devel
Revision: 5241
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5241
Author: blueswir1
Date: 2008-09-17 19:05:19 +0000 (Wed, 17 Sep 2008)
Log Message:
-----------
Enable ld flag --warn-common
Modified Paths:
--------------
trunk/configure
Modified: trunk/configure
===================================================================
--- trunk/configure 2008-09-17 19:04:14 UTC (rev 5240)
+++ trunk/configure 2008-09-17 19:05:19 UTC (rev 5241)
@@ -353,6 +353,10 @@
CFLAGS="$CFLAGS -Werror"
fi
+if ld --version 2>/dev/null | grep -q "GNU ld" ; then
+ LDFLAGS="$LDFLAGS -Wl,--warn-common"
+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)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-09-17 19:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-17 19:05 [Qemu-devel] [5241] Enable ld flag --warn-common Blue Swirl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).