[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Everyone with a luarock that makes a .so needs to add -fPIC?
- From: Rob Kendrick <rjek@...>
- Date: Sun, 26 Dec 2010 13:49:02 +0000
On Sat, Dec 25, 2010 at 11:55:42PM -0800, Zed Shaw wrote:
> I believe people need to add -fPIC to all .so builds on Linux, and
> maybe other platforms from now on.
You have always had to build shared objects with -fPIC, no mater what
architecture. It just happened to mostly work without -fPIC on x86 (and
not AMD64), but though luck rather than good judgement.
And while I imagine it's technically possible to come up with a shared
object compiling and linking system that wouldn't require -fPIC, I bet
no operating system has such.
B.