This is the mail archive of the gcc-help@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: -lpthread -lstdc++ crashes on IRIX 6.5


On Mon, Feb 21, 2011 at 07:24:00PM -0600, Peter O'Gorman wrote:
> 
> While I agree with all of this, adding -lpthread to the link line as
> well as -pthread should not cause the resulting application to crash.
> 
> I see I never got to that in my original mail, sorry :(. Even if we
> consistently use -pthread for compiling and linking with gcc, we
> sometimes end up with a -lpthread on the link line (often because
> libtool has it in some .la files dependency_libs, sometimes due to
> pkgconfig), and when that happens the resulting application crashes at
> launch.

This patch (for gcc-4.4, but if this is the right way to go, we will
forward port) works around the issue. Is it the correct approach? Or
perhaps the problem is specific to our build of gcc-4.4 on IRIX?

Thanks,
Peter
-- 
Peter O'Gorman
pogma@thewrittenword.com

Attachment: reorderstdcpp.patch
Description: Text document


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