Re: DLLs ... [OFFTOPIC]

DAVID BALAZIC (david.balazic@uni-mb.si)
Fri, 17 Jul 1998 13:26:08 +0100 (MET)


From: ralf@uni-koblenz.de

>On Thu, Jul 16, 1998 at 01:30:43PM +0100, DAVID BALAZIC wrote:
>
>> >Linking to library:
>> >gcc -o executable -L/path/to/lib -lXY exec1.o exec2.o ...
>>
>> Is -fPIC neccesary ?
>> Do lib*.so files have no reloc tables ?
>>
>> I compiled once a shared library without -fPIC and it didn't give me no troubles.
>
>If you need to use -fpic / -fPIC is system dependent. At least on Intel
>-fPIC will work but is way less efficient for DSOs. Checkout GNU's
>libtool. It will help you to make your program work on many more
>architectures than just Linux and avoids that you have to learn about all
>the nasty details about shared libs.

So -fPIC is not needed on linux-i386 ( libc5 ) ?

--
David Balazic , student
E-mail   : 1stein@writeme.com     |     living in  sLOVEnija
home page: http://surf.to/stein
Computer: Amiga 1200 + Quantum LPS-340AT
--

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html