Re: Linking against indirect dependencies

2004-05-31 Thread Szombathelyi György
Miert fizetsz az internetert? Korlatlan, ingyenes internet hozzaferes a FreeStarttol. Probald ki most! http://www.freestart.hu szombat 29 mjus 2004 12:41 dtummal ezt rta: On May 28, 2004, Szombathelyi Gyrgy [EMAIL PROTECTED]

Re: Linking against indirect dependencies

2004-05-29 Thread Alexandre Oliva
On May 28, 2004, Szombathelyi Gyrgy [EMAIL PROTECTED] wrote: AFAIK it's possible to link in libdep to libfoo if libdep is static Depends on the platform. Some combinations of OSs, ABIs and hardware architectures don't allow non-PIC in shared libraries. Yes, several of the platforms that don't

RE: Linking against indirect dependencies

2004-05-29 Thread Howard Chu
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Alexandre Oliva On May 28, 2004, Szombathelyi Gyrgy [EMAIL PROTECTED] wrote: AFAIK it's possible to link in libdep to libfoo if libdep is static Depends on the platform. Some combinations of OSs,

Re: Linking against indirect dependencies

2004-05-28 Thread Szombathelyi György
Hello! Bob Friesenhahn írta: It is not an easy task to intuit which systems require the full linkage list and which will work properly with an abbreviated list. Even older Linux versions require the full linkage list (or several copies thereof!). A further problem is that libtool doesn't

Re: Linking against indirect dependencies

2004-05-28 Thread Alexandre Oliva
On May 26, 2004, Bob Friesenhahn [EMAIL PROTECTED] wrote: It also depends on libtool being 100% accurate in determining if a library is a static library or a shared library since static libraries don't support library dependencies. And there's another problem. When libtool passes

Re: Linking against indirect dependencies

2004-05-28 Thread Szombathelyi Gy�rgy
Friday 28 May 2004 09:27 dátummal ezt írta: And there's another problem. When libtool passes -ldependency in the command line, the linker will look for libdependency in the directories where it looks for libraries (-L). If libdependency is only brought in by another shared library that has

Re: Linking against indirect dependencies

2004-05-26 Thread Szombathelyi György
Hello! Yes, I read the thread. I agree that libtool should perform the optimization you want but I don't see it as something that is a show-stopper. I agree that it isn't a show-stopper, but it would be very nice if libtool could handle this. Can someone add this 'feature' to the libtool TODO

Re: Linking against indirect dependencies

2004-05-26 Thread Bob Friesenhahn
On Wed, 26 May 2004, Szombathelyi György wrote: Yes, I read the thread. I agree that libtool should perform the optimization you want but I don't see it as something that is a show-stopper. I agree that it isn't a show-stopper, but it would be very nice if libtool could handle this. Can someone

Re: Linking against indirect dependencies

2004-05-26 Thread Szombathelyi György
Hi! Here's another description of the problem, so I'm not the only one who think that a solution is needed. They mention pkg-config, not libtool, so maybe a fix required in pkg-config, too, but as I read the TODO in libtool, there are common goals in these projects, so the root of the problem

Re: Linking against indirect dependencies

2004-05-26 Thread Scott James Remnant
On Wed, 2004-05-26 at 08:07 +0200, Szombathelyi Gyrgy wrote: Yes, I read the thread. I agree that libtool should perform the optimization you want but I don't see it as something that is a show-stopper. I agree that it isn't a show-stopper, but it would be very nice if libtool could

Re: Linking against indirect dependencies

2004-05-25 Thread Albert Chin
On Tue, May 25, 2004 at 11:37:38AM +0200, Szombathelyi_GyXrgy wrote: On Mon, 24 May 2004, Albert Chin wrote: dependency_libs doesn't contain just libraries. Maybe LDFLAGS as well, like -pthread. BTW, is it _really_ a problem to link against everything in dependency_libs? Indirectly, this is

Re: Linking against indirect dependencies

2004-05-25 Thread Bob Friesenhahn
On Mon, 24 May 2004, Albert Chin wrote: Of course the correct answer is that not linking against indirect dependencies is non-portable. Certainly Microsoft Windows DLLs require full linkage, and I believe/suspect that AIX does as well. I don't see it that way. If a backend optimization can

Linking against indirect dependencies

2004-05-24 Thread Szombathelyi György
Hello! I've just curious if is it possible _not_ to link a program/lib against its indirect dependencies. I mean if libC is linked against libB and libB is against libA then libtool will link libC against libA, which is not neccessary in most situations (at least not on Linux, but I guess not

Re: Linking against indirect dependencies

2004-05-24 Thread Albert Chin
On Mon, May 24, 2004 at 08:19:00AM +0200, Szombathelyi Gy?rgy wrote: I've just curious if is it possible _not_ to link a program/lib against its indirect dependencies. I mean if libC is linked against libB and libB is against libA then libtool will link libC against libA, which is not

Re: Linking against indirect dependencies

2004-05-24 Thread Bob Friesenhahn
is that not linking against indirect dependencies is non-portable. Certainly Microsoft Windows DLLs require full linkage, and I believe/suspect that AIX does as well. Libtool always chooses the most portable approach and does not encourage developers to use non-portable platform-specific approaches

Re: Linking against indirect dependencies

2004-05-24 Thread Albert Chin
to happen anyway even if libtool doesn't do this. Of course the correct answer is that not linking against indirect dependencies is non-portable. Certainly Microsoft Windows DLLs require full linkage, and I believe/suspect that AIX does as well. I don't see it that way. If a backend optimization