From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11448 invoked by alias); 30 Dec 2005 02:40:26 -0000 Received: (qmail 11441 invoked by uid 22791); 30 Dec 2005 02:40:26 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Fri, 30 Dec 2005 02:40:22 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1EsABn-0006n5-9H; Thu, 29 Dec 2005 21:40:19 -0500 Date: Fri, 30 Dec 2005 02:40:00 -0000 From: Daniel Jacobowitz To: Jie Zhang Cc: gdb@sources.redhat.com Subject: Re: An issue in configure.ac of gdbserver Message-ID: <20051230024019.GB26004@nevyn.them.org> Mail-Followup-To: Jie Zhang , gdb@sources.redhat.com References: <6f48278f0512282138i3c2a193fqdd4cf23182e75d2f@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6f48278f0512282138i3c2a193fqdd4cf23182e75d2f@mail.gmail.com> User-Agent: Mutt/1.5.8i X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2005-12/txt/msg00211.txt.bz2 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