Fix testsuite failures caused by -static-libgcc and -static-libstdc++ options
H.J. Lu
hjl.tools@gmail.com
Fri Dec 21 20:05:00 GMT 2012
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.
More information about the Binutils
mailing list