lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


>> 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?