[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Use -fPIC when compiling lua
- From: Daniel Silverstone <dsilvers@...>
- Date: Wed, 17 Dec 2014 10:28:57 +0000
On Wed, Dec 17, 2014 at 01:06:47 -0500, Jay Carlson wrote:
> Eye roll. -fPIC is always safe on SVR4 descendents.
It's also almost always slower than non PIC code on all but x86_32. Unless
you're building a shared library or a position independent executable, don't
use -fPIC.
Also, for reference, -fpic and -fPIC have different meanings on at least three
architectures so be careful with which you mean and when.
D.
--
Daniel Silverstone http://www.digital-scurf.org/
PGP mail accepted and encouraged. Key Id: 3CCE BABE 206C 3B69