lua-users home
lua-l archive

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

Thank you! I resolved it by patch the Makefile to build

On Mon, Dec 7, 2020 at 7:48 PM Andrew Gierth <> wrote:
>>>>> "Ricky" == Ricky Wu <> writes:

 Ricky> I install Lua by this

 Ricky>     && curl -R -O \
 Ricky>     && tar zxf lua-5.4.1.tar.gz \
 Ricky>     && cd lua-5.4.1 \
 Ricky>     && make MYCFLAGS="-fPIC" linux \
 Ricky>     && make install \

The stock Lua distribution does not build a shared library, but most
packaged distributions for linux or other unix-like OSes do build one.
It is clear that the vis author expected to use a shared library.

 Ricky> But if I add in Makefile of Lua as TO_LIB= liblua.a
 Ricky> got:

That's not enough, you have to arrange to actually build it, including
using -fPIC.


Ricky J. Ng