An issue in configure.ac of gdbserver
Daniel Jacobowitz
drow@false.org
Fri Dec 30 02:40:00 GMT 2005
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
More information about the Gdb
mailing list