Re: RFC: on AIX, which "soname"-equivalent to prefer with runtime linking?

2011-01-22 Thread Daniel Sands
The reasons to choose this way: *) It is possible to dlopen() with or without a version number: - dlopen("libNAME.so(shr.o)", RTLD_MEMBER), besides the preferred - dlopen("libNAME.so.1(shr.o)", RTLD_MEMBER), and even - dlopen("libNAME.so.1.2.3(shr.o)", RTLD_MEMBER) does work. Does d

Re: RFC: on AIX, which "soname"-equivalent to prefer with runtime linking?

2011-01-22 Thread Daniel Sands
The reasons to choose this way: *) It is possible to dlopen() with or without a version number: - dlopen("libNAME.so(shr.o)", RTLD_MEMBER), besides the preferred - dlopen("libNAME.so.1(shr.o)", RTLD_MEMBER), and even - dlopen("libNAME.so.1.2.3(shr.o)", RTLD_MEMBER) does work. Does d

Linking binaries against libtool libraries and non-libtool libraries

2011-01-22 Thread Christopher Sean Morrison
Compiling an application against libtool and non-libtool libraries seems to result in a binary that works fine once installed, but will not execute correctly when run through the libtool wrapper script prior to being installed. The application fails to add the non-libtool library path to the li

Re: pic-only option not working as expected

2011-01-22 Thread John Calcote
Hi Ralf, On 01/22/2011 12:47 PM, Ralf Wildenhues wrote: > * John Calcote wrote on Sat, Jan 22, 2011 at 08:42:33PM CET: >> LT_INIT([disable-shared static pic-only]) >> ... >> >> While playing with these options, I noticed that the 'disable-shared' >> and 'static' options seem to have the desired ef

Re: pic-only option not working as expected

2011-01-22 Thread Ralf Wildenhues
* John Calcote wrote on Sat, Jan 22, 2011 at 08:42:33PM CET: > LT_INIT([disable-shared static pic-only]) > ... > > While playing with these options, I noticed that the 'disable-shared' > and 'static' options seem to have the desired effect, but the 'pic-only' > option does not. Whether I use 'pic-

pic-only option not working as expected

2011-01-22 Thread John Calcote
I'm trying to create a libtool static library (a shared library is not needed in this case) that can be used as part of a shared library in another project. Thus, I need to ensure that PIC code is used in the static library. Since this is a private project, I wanted to set the defaults in 'LT_INIT'

Re: RFC: on AIX, which "soname"-equivalent to prefer with runtime linking?

2011-01-22 Thread Peter O'Gorman
On 01/21/2011 08:19 AM, Michael Haubenwallner wrote: Hello! Hi. Library versioning for AIX would be a great feature. After playing around with different ways[1], this is my proposed one, using an AIX feature called "Import Files": *) Create the shared object "shr.o" (using '-G' linker flag