This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: An issue in configure.ac of gdbserver
On Thu, Dec 29, 2005 at 01:38:29PM +0800, Jie Zhang wrote:
> Hi,
>
> This piece of code in configure.ac of gdbserver does not work as
> intended, since gcc only gives an warning if it does not accept
> -rdynamic.
>
> LDFLAGS="$LDFLAGS -rdynamic"
> AC_TRY_LINK([], [], [RDYNAMIC=-rdynamic], [RDYNAMIC=])
> AC_SUBST(RDYNAMIC)
Is this a problem? For one thing, usually dejagnu reports gcc warnings
as fatal; the test would fail if the option generated a warning. For
another, the option should be used unless it causes gcc to fail;
using it even when GCC doesn't support it should be harmless.
--
Daniel Jacobowitz
CodeSourcery, LLC