This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFC: when using libunwind, add -lunwind to link line whenusing shared libgcc


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
> doesn't.
> 
> 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
> now.

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 <mark@codesourcery.com>
CodeSourcery, LLC


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]