This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Fix testsuite failures caused by -static-libgcc and -static-libstdc++ options
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Cary Coutant <ccoutant at google dot com>
- Cc: Ian Lance Taylor <iant at google dot com>, Binutils <binutils at sourceware dot org>
- Date: Fri, 21 Dec 2012 12:05:25 -0800
- Subject: Re: Fix testsuite failures caused by -static-libgcc and -static-libstdc++ options
- References: <CAHACq4qq8kjvjRg8fGWc8bJV9FPM-v+yv6bEiBvbDOAJKyYGzA@mail.gmail.com>
On Thu, Dec 20, 2012 at 3:15 PM, Cary Coutant <ccoutant@google.com> wrote:
> This patch adds -shared-libgcc and -Bdynamic -lstdc++ options to
> counteract the effect of the -static... options now passed in from the
> top-level config. With a static libstdc++, the link of debug_msg_so
> succeeds instead of printing several undefined variables, because we
> suppress the printing of undefined variables when building a shared
> object with unresolved DT_NEEDED entries.
>
> Tested on x86_64. OK to commit?
>
> -cary
>
>
> gold/
> * testsuite/Makefile.am (debug_msg_so.err): Add -shared-libgcc and
> -Bdynamic -lstdc++ options.
> (debug_msg_ndebug.err): Likewise.
> * testsuite/Makefile.in: Regenerate.
Does it fix
http://www.sourceware.org/bugzilla/show_bug.cgi?id=14608
--
H.J.