diff options
author | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-09-17 19:05:19 +0000 |
---|---|---|
committer | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-09-17 19:05:19 +0000 |
commit | 5b82e8f9e1d712b1376279115707854b479058c4 (patch) | |
tree | c60021d86ec7d0333f015868f4c1832c03e2d0da /configure | |
parent | 3a479c71fbd99783c4dc5abae474f6d3a412c69d (diff) | |
download | qemu-5b82e8f9e1d712b1376279115707854b479058c4.tar.gz qemu-5b82e8f9e1d712b1376279115707854b479058c4.tar.bz2 qemu-5b82e8f9e1d712b1376279115707854b479058c4.zip |
Enable ld flag --warn-common
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5241 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -353,6 +353,10 @@ if test "$werror" = "yes" ; then 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) |