[Top][All Lists]

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

Re: removal of .la files from Debian and a possible solution to the libt

From: Anssi Hannula
Subject: Re: removal of .la files from Debian and a possible solution to the libtool shared libs problem
Date: Wed, 26 Aug 2009 13:05:22 +0300
User-agent: Thunderbird (X11/20090815)

Ralf Wildenhues wrote:
> * Bob Friesenhahn wrote on Wed, Aug 26, 2009 at 05:01:18AM CEST:
>> Is someone here willing to contribute a portable m4 macro which
>> tests the compiler (and/or linker) to prove beyond a shadow of a
>> doubt that it adequately supports the implicit linkage required? The
>> tests should work for more than Linux and should be based on
>> observed behavior.
> Is support in Debian full now?

I'm not sure what you mean by this.

> Do dlopen'ed modules that have indirect
> dependencies outside of default-searched library paths get loaded
> correctly now, with DT_RPATH entries only pointing to direct deplibs
> (and recursively for their DT_RPATH entries)?

This works fine without linking in dependency_libs. I continue the test
from my earlier message:

$ cd ../enchant-1.4.2
$ ./configure --prefix=/home/anssi/odd/usr \
        --libdir=/home/anssi/odd/usr/lib \
        LDFLAGS=-L/home/anssi/odd/usr/lib \
$ make && make install
$ sed -i "s,^dependency_libs=.*$,dependency_libs=''," \
        /home/anssi/odd/usr/lib/ \
$ /home/anssi/odd/usr/bin/enchant-lsmod | grep voikko
voikko (Voikko Provider)

$ objdump -p /home/anssi/odd/usr/lib/enchant/ | grep
-e NEEDED.*voik -e RPA
  RPATH                /home/anssi/odd/usr/lib

$ objdump -p /home/anssi/odd/usr/lib/   | grep -e malaga
  RPATH                /home/anssi/odd/lib

$ ls /home/anssi/odd/lib/

So when enchant dlopens, the dependency on and in turn its dependency on in another
directory are resolved fine.

>> Support for indirect dependencies should be a configure option so
>> that it should be specifically requested.
> See $link_all_deplibs (which is "no" on Debian but "yes" in FSF
> Libtool).

IIRC link_all_deplibs only affects executables, not libraries.

The comment describing link_all_deplibs seems to agree:
# Whether libtool must link a program against all its dependency libraries.

Anssi Hannula

reply via email to

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