creating specialized linking rules?

2009-08-05 Thread John Wohlbier
I'm using libtool in a project where I'm compiling code for the cell processor. The cell requires different compilers to be used on sources compiled for the PowerPC core (PPU) and the "synergistic processing unit" (SPU). I'm building (trying to build) a libtool library for the ppu which embeds the

Re: libtool versioning and ABI

2009-08-05 Thread Bob Friesenhahn
On Thu, 6 Aug 2009, Michel Briand wrote: Personally I've always seen interface as a contract. A contract between a library writer and library user. The API is the compile-time contract and the ABI is the run-time contract. Since it's a contract, ABI changes fall into the contract agreement.

Re: libtool versioning and ABI

2009-08-05 Thread Michel Briand
Joseph Garvin - Wed, 5 Aug 2009 17:02:18 -0500 >On Wed, Aug 5, 2009 at 4:46 PM, Bruce Korb wrote: > >> On Wed, Aug 5, 2009 at 2:32 PM, Joseph Garvin >> wrote: >> > I read a description of libtool's versioning here: >> > >> > >> http://www.gnu.org/software/libtool/manual/html_node/Updating-versi

Re: libtool versioning and ABI

2009-08-05 Thread Bob Friesenhahn
On Wed, 5 Aug 2009, Joseph Garvin wrote: ... But that still doesn't make sense. If I only add (don't remove functions or change existing signatures) to my interfaces, I still bump the current number according to that rule. But adding to an interface doesn't necessarily break ABI. So if current-b

Re: libtool versioning and ABI

2009-08-05 Thread Bob Friesenhahn
On Wed, 5 Aug 2009, Bruce Korb wrote: Those surely sound like rule 4 to me: If any interfaces have been added, removed, or changed since the last update, increment current, and set revision to 0. changing structures or funtional interfaces (inline functions), surely is an interface change.

Re: libtool versioning and ABI

2009-08-05 Thread Joseph Garvin
On Wed, Aug 5, 2009 at 4:46 PM, Bruce Korb wrote: > On Wed, Aug 5, 2009 at 2:32 PM, Joseph Garvin > wrote: > > I read a description of libtool's versioning here: > > > > > http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html > > > > What's confusing to me is that this w

Re: libtool versioning and ABI

2009-08-05 Thread Bruce Korb
On Wed, Aug 5, 2009 at 2:32 PM, Joseph Garvin wrote: > I read a description of libtool's versioning here: > > http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html > > What's confusing to me is that this way of handling versioning doesn't seem > to pay attention to ABI. It

libtool versioning and ABI

2009-08-05 Thread Joseph Garvin
I read a description of libtool's versioning here: http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html What's confusing to me is that this way of handling versioning doesn't seem to pay attention to ABI. It mentions bumping numbers for interface changes (API) but not f