[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: please drop whatever you're doing and add -fPIC to all your rockspecs.
- From: Pan Shi Zhu <pan.shizhu@...>
- Date: Mon, 1 Mar 2010 12:04:11 +0800
>> AFAIK lua official manual recommends to statically link all lua and
>> lua modules into your host application.
>>
>> So generally, if you follow the rule, you will *never* need -fPIC option.
>
> But isn't Lua Rocks by definition not following the rule?
lua rocks is simply a build/deployment system, if the makefile of the
module choose to break the rule, then it is no fault of lua rocks.
If the module author creates a Makefile that by default create static
library and lua rocks simply make according to the Makefile. That is
the freedom of module, why add -fPIC when compile?