An issue in configure.ac of gdbserver

Jie Zhang jzhang918@gmail.com
Fri Dec 30 06:31:00 GMT 2005


Daniel Jacobowitz wrote:
> 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.
> 
I thought it's also trying to catch the warning. Thanks for explanation.

Jie



More information about the Gdb mailing list