[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Build lua shared libraries
- From: "Thomas Lefort" <thomas.lefort@...>
- Date: Tue, 3 Oct 2006 23:02:30 +0200
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 !