amxb_usp: fix unresolved 'sinh' symbol in liblua.so.5.1.5
Issue:
liblua.so.5.1.5 is missing libm.so.6 in its DT_NEEDED entries, this under-linking resulted in undefined 'sinh' symbols during unit tests.
Fix:
Add a patch (package/utils/lua/patches/055-honor-libs.patch) to ensure $(LIBS) is included when building liblua.so
Reference: PPW-1186, PCF-2425
Signed-off-by: Mabrouka <mabrouka.benbelgacem_ext@softathome.com>
This commit is contained in:
parent
fc21c16f83
commit
bddf010683
11
package/utils/lua/patches/055-honor-libs.patch
Normal file
11
package/utils/lua/patches/055-honor-libs.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- a/src/Makefile
|
||||
+++ b/src/Makefile
|
||||
@@ -56,7 +56,7 @@ $(LUA_A): $(CORE_O) $(LIB_O)
|
||||
$(RANLIB) $@
|
||||
|
||||
$(LUA_SO): $(CORE_O) $(LIB_O)
|
||||
- $(CC) -o $@.$(PKG_VERSION) -Wl,-Bsymbolic-functions $(MYLDFLAGS) -shared -Wl,-soname="$@.$(PKG_VERSION)" $?
|
||||
+ $(CC) -o $@.$(PKG_VERSION) -Wl,-Bsymbolic-functions $(MYLDFLAGS) -shared -Wl,-soname="$@.$(PKG_VERSION)" $? $(LIBS)
|
||||
ln -fs $@.$(PKG_VERSION) $@
|
||||
|
||||
$(LUA_T): $(LUA_O) $(LUA_SO)
|
||||
Loading…
Reference in New Issue
Block a user