From: Dany LE Date: Tue, 25 Aug 2025 10:39:56 +0200 Subject: Enable shared lib build Add command to generate shared lib in Makefile Upstream-Status: Pending Signed-off-by: Dany LE --- diff --git a/src/Makefile b/src/Makefile index b771196..6ff850c 100644 --- a/src/Makefile +++ b/src/Makefile @@ -59,7 +59,7 @@ a: $(ALL_A) $(LUA_A): $(BASE_O) $(AR) $@ $(BASE_O) $(RANLIB) $@ - + $(CC) -shared -ldl -Wl,-soname,liblua.so.$R -o liblua.so.$R $? -lm $(MYLDFLAGS) $(LUA_T): $(LUA_O) $(LUA_A) $(CC) -o $@ $(LDFLAGS) $(LUA_O) $(LUA_A) $(LIBS)