____________________________________________________________________
Miert fizetsz az internetert? Korlatlan, ingyenes internet hozzaferes a FreeStarttol.
Probald ki most! http://www.freestart.hu

szombat 29 mÃjus 2004 12:41 dÃtummal ezt Ãrta:
> On May 28, 2004, Szombathelyi GyÃrgy <[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 support this are GNU/Linux ports.
>
> Try this on x86_64-linux-gnu, for example.  It won't work, unless you
> somehow arrange for libdep.o to not contain any relocations that
> aren't PIC.

Ok, as I see, libtool cannot solve this, but as I researched further, libtool 
doesn't need to solve it. Newer GNU 'ld' has the flag --as-needed, which does 
exactly the thing I wanted. The only problem from the libtool side is that if 
I specify LDFLAGS=-Wl,--as-needed, libtool will append these flags after 
dependency_libs, so the option will be useless. I attached a patch which puts 
$compiler_flags before any dependencies. Is this patch acceptable?

Bye,
GyÃrgy


Attachment: lt.diff.gz
Description: GNU Zip compressed data

_______________________________________________
Libtool mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/libtool

Reply via email to