feat: add liblua to image
This commit is contained in:
25
recipes-devtools/lua/files/0001-enable-shared-library.patch
Normal file
25
recipes-devtools/lua/files/0001-enable-shared-library.patch
Normal file
@@ -0,0 +1,25 @@
|
||||
From: Dany LE <xsang.le@gmail.com>
|
||||
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 <xsang.le@gmail.com>
|
||||
---
|
||||
|
||||
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)
|
||||
|
Reference in New Issue
Block a user