lua-users home
lua-l archive

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


How can I build the shared libraries from source?
System is linux, so I use the make linux.

You'll have to complete src/Makefile. Name the target, add it to the
main list, and add a build rule, like this:

LUA_SO=liblua.so

ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T) $(LUA_SO)

$(LUA_SO): $(CORE_O) $(LIB_O)
	$(CC) -o $@ -shared $?

Also in the main Makefile, have the shared library installed along
with the static one:

TO_LIB= liblua.a liblua.so

Good luck !