Re: .ctor section of shared libraries with PathScale compiler

2007-04-26 Thread Ralf Wildenhues
Thanks Noah. I installed that, but changed the constant to be a #define in the header file. To ease Jeff's concerns about -shared: if libtool supports shared libraries for the system/compiler in question, then they will be preferred over static libs. So -shared is not needed in order for the tes

Re: .ctor section of shared libraries with PathScale compiler

2007-04-26 Thread Jeff Squyres
Noah -- Awesome; thanks! (you code is a bit simpler than mine, which is good) I think the only difference is that the C++ library must be a shared library. It will always work fine if the library is static. I saw some references in some of the other .at files that there is a way to figu

Re: .ctor section of shared libraries with PathScale compiler

2007-04-25 Thread Noah Misch
On Wed, Apr 25, 2007 at 12:36:23PM -0400, Jeff Squyres wrote: > I'm told that I can describe the patch in implementation-free terms > in the hope that someone else can implement it who either can setup > to transfer copyright to the FSF or already has such a transfer > agreement in place. >

Re: .ctor section of shared libraries with PathScale compiler

2007-04-25 Thread Jeff Squyres
After some more off-list mails with Ralf, I found that non-trivial patches to Libtool must be accompanied by a copyright transfer to the FSF (this is FSF policy). I understand the rationale for this policy, but I'm told by Cisco lawyers that we cannot do this, unfortunately (long, uninteres

Re: .ctor section of shared libraries with PathScale compiler

2007-04-23 Thread Jeff Squyres
With some off-list help from Ralf, I was able to create a .at test that shows the problem (see attached). I'm sure you guys will want to tweak it a bit more (e.g., it blindly uses -shared and doesn't check to see if Libtool has shared library support). The test itself is pretty simple: -

Re: .ctor section of shared libraries with PathScale compiler

2007-04-22 Thread Ralf Wildenhues
[ http://thread.gmane.org/gmane.comp.gnu.libtool.bugs/5697 http://thread.gmane.org/gmane.comp.gnu.libtool.bugs/5465 ] Hello all, and apologies for the huge delay, * Peter Wainwright wrote on Sun, Jul 23, 2006 at 11:06:36PM CEST: > I'm trying to compile a large existing project which uses libtoo

.ctor section of shared libraries with PathScale compiler

2006-07-23 Thread Peter Wainwright
I'm trying to compile a large existing project which uses libtool, using the PathScale C++ compiler. This project has several shared libraries. I found that the constructors for the global objects in these libraries were not being called at all. It turns out that the order of linking objects is wro