libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: forward porting UnixWare fixes to HEAD


From: Ralf Wildenhues
Subject: Re: forward porting UnixWare fixes to HEAD
Date: Fri, 11 Nov 2005 00:32:34 +0100
User-agent: Mutt/1.5.9i

[ moving from libtool to libtool-patches ]

Hi Tim,

* Ralf Wildenhues wrote on Thu, Sep 29, 2005 at 10:36:23AM CEST:
> * Tim Rice wrote on Thu, Sep 29, 2005 at 06:21:45AM CEST:
> > 
> > I'm attempting to forward port the branch-1-5 UnixWare fixes
> > to CVS HEAD. All of the old tests pass now but 2 of the new tests (18 & 19)
> > fail. Pointers would be appreciated.
> 
> I had expected these tests to fail.  They try to use C++ templates
> together with shared libraries; since Libtool support for this is
> still very experimental (and has been made to work for a few
> compilers only), there is some work to be done.

Read up here on how to do this:
http://uw714doc.sco.com/en/SDK_cprog/_One_Instantiation_Per_Object.html

> Basically, before creating a shared library or an executable, you
> want to instruct the compiler to create one object per template
> instantiation, and you want to add all those additional objects to
> the link line.  One instantiation per object helps to avoid duplicate
> symbols in case these templates are instantiated several times.

Above documentation suggests that the compiler should be capable of
this.  The only thing I'd find even better were if it could be told not
to compile any instantiations during compilation of the normal objects,
or, a bit less efficient, to just recreate all template instantiations
before doing the linking.  This prevents issues with multiple template
directories, and leftover instantiation objects in there.

> For creating programs, you may set prelink_cmds accordingly. 

Cheers,
Ralf




reply via email to

[Prev in Thread] Current Thread [Next in Thread]