This is the mail archive of the
mailing list for the GCC project.
Re: RFC: when using libunwind, add -lunwind to link line whenusing shared libgcc
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Zack Weinberg <zack at codesourcery dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sun, 28 Dec 2003 11:07:50 -0800
- Subject: Re: RFC: when using libunwind, add -lunwind to link line whenusing shared libgcc
- Organization: CodeSourcery, LLC
- References: <email@example.com>
- Reply-to: mark at codesourcery dot com
On Tue, 2003-12-23 at 18:59, Zack Weinberg wrote:
> For some time all C++ execute tests have been failing on ia64-*-hpux*
> with link errors - undefined references to _Unwind_* symbols. On this
> target, libgcc expects libunwind to provide these symbols, and g++ is
> supposed to add it to the linker command line automatically. But it
> This is my crude patch for the problem. I'm not sure if it's the
> right thing, but it does let a C++ hello world program link with no
> special options on ia64-hp-hpux11.22; I am running the g++ test suite
Wow, init_gcc_specs is not documented well at all.
However, your patch looks correct to me. If it survives testing on
ia64-hp-hpux11.22, check it in.
Mark Mitchell <firstname.lastname@example.org>