Changeset View
Changeset View
Standalone View
Standalone View
files/patch-src_Makefile
- This file was added.
--- src/Makefile.orig 2018-04-07 20:16:26.000000000 +0000 | |||||
+++ src/Makefile | |||||
@@ -35,12 +35,13 @@ | |||||
LUA_T= lua | |||||
LUA_O= lua.o | |||||
+LUA_SO= liblua.so | |||||
LUAC_T= luac | |||||
LUAC_O= luac.o | |||||
ALL_O= $(BASE_O) $(LUA_O) $(LUAC_O) | |||||
-ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T) | |||||
+ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T) $(LUA_SO) | |||||
ALL_A= $(LUA_A) | |||||
# Targets start here. | |||||
@@ -52,6 +53,9 @@ | |||||
a: $(ALL_A) | |||||
+$(LUA_SO): $(CORE_O) $(LIB_O) | |||||
+ $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $(MYLDFLAGS) -shared -Wl,-soname=$(LUA_SONAME) $? | |||||
+ | |||||
$(LUA_A): $(BASE_O) | |||||
$(AR) $@ $(BASE_O) | |||||
$(RANLIB) $@ |