libtool
[Top][All Lists]
Advanced

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

Re: Linking against indirect dependencies


From: Alexandre Oliva
Subject: Re: Linking against indirect dependencies
Date: 29 May 2004 07:41:35 -0300
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

On May 28, 2004, Szombathelyi György <address@hidden> 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.

-- 
Alexandre Oliva             http://www.ic.unicamp.br/~oliva/
Red Hat Compiler Engineer   address@hidden, gcc.gnu.org}
Free Software Evangelist  address@hidden, gnu.org}




reply via email to

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