[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Shared libraries on AIX
From: |
Steve Edwards |
Subject: |
Re: Shared libraries on AIX |
Date: |
Sun, 10 May 2009 07:12:51 +0100 |
On Sat, 9 May 2009 20:01:18 +0200
Ralf Wildenhues <address@hidden> wrote:
> Hi Steve,
>
> * Steve Edwards wrote on Sat, May 09, 2009 at 02:11:11PM CEST:
> [ -brtl ]
> > Should libtool be adding this flag, or is this something I should
> > be manually adding via AM_LDFLAGS? Every other aspect of the shared
> > library build is handled fine by libtool.
>
> As Bob already noted, you should be using it at configure time:
> ./configure LDFLAGS=-Wl,-brtl
>
> (or maybe set judiciously inside configure.ac). Quoting doc/notes.txt:
>
> * On AIX there are two different styles of shared linking, one in
> which symbols are bound at link-time and one in which symbols are
> bound at runtime only, similar to ELF. In case of doubt use
> `LDFLAGS=-Wl,-brtl' for the latter style.
Thanks to both Ralf and Bob.
In that case, I will set this in configure.ac. I hadn't realised it was a
policy level decision for this flag.
> Note that the Libtool macros will take some different turns when they
> see -brtl at configure time.
I did notice a few checks in the generated configure script when I took a quick
look!
Thanks again
Steve
--
----------------------------------------------------------
----------------------------------------------------------