[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[2.2.7a] (patch) AIX can statically link against shared libraries
From: |
Michael Haubenwallner |
Subject: |
[2.2.7a] (patch) AIX can statically link against shared libraries |
Date: |
Thu, 18 Dec 2008 18:09:06 +0100 |
following up
http://lists.gnu.org/archive/html/bug-libtool/2008-12/msg00006.html
started at
http://lists.gnu.org/archive/html/bug-libtool/2008-11/msg00082.html
On Tue, 2008-12-09 at 06:51 +0100, Ralf Wildenhues wrote:
> * Michael Haubenwallner wrote on Mon, Dec 08, 2008 at 11:19:41PM CET:
> > On Mon, 2008-12-08 at 08:10 +0100, Ralf Wildenhues wrote:
> >
> > > > + _LT_TAGVAR(lt_prog_compiler_shared_as_static,
> > > > $1)='${wl}-bstatic'
> > > > + _LT_TAGVAR(lt_prog_compiler_shared_as_shared,
> > > > $1)='${wl}-bdynamic'
> > >
> > > What is the semantic difference between these switches and this proposal
> > > <http://thread.gmane.org/gmane.comp.gnu.libtool.patches/6727/focus=6730>?
> > > If the difference is too small, we should apply the other patch first
> > > and adjust your patch accordingly, no?
> >
> > Haven't seen this thread before. Agreed, it is related, but it depends
> > on how the per-deplib-flags would interfere with -static-libtool-libs
> > and -static, as - unlike other platforms - the '-bstatic' flag allows
> > (and is necessary when not -static) to statically link a shared-only
> > library.
>
> Yes, that is definitely different in semantics than what the above
> thread tries to achieve.
>
> > So the search for a statically-linkable library would need to know that
> > shared-only libraries can match too when '$shared_as_static' is set.
>
> Yep.
Have extracted the parts to statically link against shared libraries on
AIX, although I don't have an idea how to get better readability for the
additional tests in ltmain.m4sh.
This also applies to the test-cases, which really should utilize
'-static' whenever possible.
Thanks!
/haubi/
aix-shared-as-static.patch
Description: Text Data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [2.2.7a] (patch) AIX can statically link against shared libraries,
Michael Haubenwallner <=