Commit 49237acdb725ef6d709aa8cb81fd1b13afa59064

Authored by blueswir1
1 parent 7ee930d0

Enable ld flag --warn-common

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5241 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 4 additions and 0 deletions
configure
... ... @@ -353,6 +353,10 @@ if test "$werror" = "yes" ; then
353 353 CFLAGS="$CFLAGS -Werror"
354 354 fi
355 355  
  356 +if ld --version 2>/dev/null | grep -q "GNU ld" ; then
  357 + LDFLAGS="$LDFLAGS -Wl,--warn-common"
  358 +fi
  359 +
356 360 #
357 361 # If cpu ~= sparc and sparc_cpu hasn't been defined, plug in the right
358 362 # ARCH_CFLAGS/ARCH_LDFLAGS (assume sparc_v8plus for 32-bit and sparc_v9 for 64-bit)
... ...