[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Everyone with a luarock that makes a .so needs to add -fPIC?
- From: Zed Shaw <zed.shaw@...>
- Date: Sat, 25 Dec 2010 23:55:42 -0800
Hi everyone,
It seems many linux distros have been changing how they handle .so
files such that *all* .so files have to be compiled with -fPIC. I
currently have this in my /etc/luarocks/config.lua :
variables.CFLAGS="-O2 -fPIC"
Which seems to work, but sometimes people have their own Makefile which doesn't.
I believe people need to add -fPIC to all .so builds on Linux, and
maybe other platforms from now on.
Thanks,
Zed