Ticket #2173: lua-5.1.1-makeso-1.patch

File lua-5.1.1-makeso-1.patch, 921 bytes (added by Luca, 18 years ago)

Create liblua.so shared library in addition to the static lib.

  • lua-5.1.1/src/Makefile

    Submitted By: Luca Piol <liliana.perossa at fastwebnet dot it>
    Date: 2006-10-04
    Initial Package Version: 5.1.1
    Upstream Status: Not submitted
    Origin: Lua list <lua@bazar2.conectiva.com.br>
    Description: Create the shared library along with the static library.
    
    diff -Naur lua-5.1.1/src/Makefile lua-5.1.1/src/Makefile
    old new  
    3131
    3232LUA_T=  lua
    3333LUA_O=  lua.o
     34LUA_SO= liblua.so
    3435
    3536LUAC_T= luac
    3637LUAC_O= luac.o print.o
    3738
    3839ALL_O= $(CORE_O) $(LIB_O) $(LUA_O) $(LUAC_O)
    39 ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T)
     40ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T) $(LUA_SO)
    4041ALL_A= $(LUA_A)
    4142
    4243default: $(PLAT)
     
    5758$(LUAC_T): $(LUAC_O) $(LUA_A)
    5859        $(CC) -o $@ $(MYLDFLAGS) $(LUAC_O) $(LUA_A) $(LIBS)
    5960
     61$(LUA_SO): $(CORE_O) $(LIB_O)
     62        $(CC) -o $@ -shared $?
     63
    6064clean:
    6165        $(RM) $(ALL_T) $(ALL_O)
    6266