Skip to contentSkip to conversation

[5241] Enable ld flag --warn-common

Qemu-devel Blue Swirl 1 participant 1 message Sep 17, 2008

lore
Share & tools
lore

Blue Swirl

author
#0 lore raw

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
===================================================================

configure +4 -0
@@ -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)