[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Build lua shared libraries
- From: Luca <liliana.perossa@...>
- Date: Wed, 04 Oct 2006 06:30:16 +0200
Thomas Lefort wrote:
>> 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 !
>
Thanks, that worked!
Bye,
Luca