[PATCH] libs: Add linking dependencies to libcopperplate and libsmokey

Vitaly Chikunov vt at altlinux.org
Mon Sep 14 23:52:33 CEST 2020


ALT rpmbuild QA script detects that libsmokey and libcopperplate is improperly
linked (when built for Mercury core).

Excerpt from the error message:
  verify-elf: ERROR: ./usr/lib64/libsmokey.so.0.0.0: undefined symbol: get_mem_size
  verify-elf: ERROR: ./usr/lib64/libcopperplate.so.0.0.0: undefined symbol: get_mem_size

Signed-off-by: Vitaly Chikunov <vt at altlinux.org>
---
 lib/copperplate/Makefile.am | 3 ++-
 lib/smokey/Makefile.am      | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/lib/copperplate/Makefile.am b/lib/copperplate/Makefile.am
index f832d1c89..c7104eb02 100644
--- a/lib/copperplate/Makefile.am
+++ b/lib/copperplate/Makefile.am
@@ -2,7 +2,8 @@
 lib_LTLIBRARIES = libcopperplate.la
 
 libcopperplate_la_LDFLAGS = @XENO_LIB_LDFLAGS@ -lpthread -lrt -version-info 0:0:0
-libcopperplate_la_LIBADD =
+libcopperplate_la_LIBADD = @XENO_CORE_LDADD@
+
 noinst_LTLIBRARIES =
 
 libcopperplate_la_SOURCES =	\
diff --git a/lib/smokey/Makefile.am b/lib/smokey/Makefile.am
index 53c775c68..4ecae1f16 100644
--- a/lib/smokey/Makefile.am
+++ b/lib/smokey/Makefile.am
@@ -1,6 +1,7 @@
 lib_LTLIBRARIES = libsmokey.la
 
 libsmokey_la_LDFLAGS = @XENO_LIB_LDFLAGS@ -version-info 0:0:0
+libsmokey_la_LIBADD = @XENO_CORE_LDADD@
 
 libsmokey_la_SOURCES =	\
 	helpers.c	\
-- 
2.21.0




More information about the Xenomai mailing list