Avoid ld flag --warn-common on Solaris
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5594 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
527067d892
commit
d2c7c9b871
5
configure
vendored
5
configure
vendored
@ -98,6 +98,7 @@ oss_lib=""
|
||||
vnc_tls="yes"
|
||||
bsd="no"
|
||||
linux="no"
|
||||
solaris="no"
|
||||
kqemu="no"
|
||||
profiler="no"
|
||||
cocoa="no"
|
||||
@ -368,8 +369,10 @@ if test "$werror" = "yes" ; then
|
||||
CFLAGS="$CFLAGS -Werror"
|
||||
fi
|
||||
|
||||
if ld --version 2>/dev/null | grep -q "GNU ld" ; then
|
||||
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
|
||||
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user