[PATCH] Add library flags for liveMedia shared library

Felix Kaechele felix at kaechele.ca
Sun Apr 12 11:11:01 PDT 2020


If the linker is configured to not perform implicit linking then the
loading of the liveMedia shared library will fail if OpenSSL is not
explicitly linked.

Error message:
  libliveMedia.so.79: undefined symbol: TLS_client_method

This is likely also applicable to any of the other platforms but I have
only tested the build for linux-with-shared-libraries. But I thought
people may find this useful.

Signed-off-by: Felix Kaechele <felix at kaechele.ca>
---
 config.linux-with-shared-libraries | 1 +
 liveMedia/Makefile.tail            | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/config.linux-with-shared-libraries b/config.linux-with-shared-libraries
index 804b916..a009145 100644
--- a/config.linux-with-shared-libraries
+++ b/config.linux-with-shared-libraries
@@ -41,5 +41,6 @@ LIB_SUFFIX =	 	$(SHORT_LIB_SUFFIX).$($(NAME)_VERSION_AGE).$($(NAME)_VERSION_REVI
 LIBRARY_LINK_OPTS =	-shared -Wl,-soname,$(NAME).$(SHORT_LIB_SUFFIX) $(LDFLAGS)
 LIBS_FOR_CONSOLE_APPLICATION = -lssl -lcrypto
 LIBS_FOR_GUI_APPLICATION =
+LIBS_FOR_LIVEMEDIA_LIB = -lssl -lcrypto
 EXE =
 INSTALL2 =		install_shared_libraries
diff --git a/liveMedia/Makefile.tail b/liveMedia/Makefile.tail
index fb5fb71..8e8fa35 100644
--- a/liveMedia/Makefile.tail
+++ b/liveMedia/Makefile.tail
@@ -68,7 +68,7 @@ LIVEMEDIA_LIB_OBJS = Media.$(OBJ) $(MISC_SOURCE_OBJS) $(MISC_SINK_OBJS) $(MISC_F
 $(LIVEMEDIA_LIB): $(LIVEMEDIA_LIB_OBJS) \
     $(PLATFORM_SPECIFIC_LIB_OBJS)
 	$(LIBRARY_LINK)$@ $(LIBRARY_LINK_OPTS) \
-		$(LIVEMEDIA_LIB_OBJS)
+		$(LIVEMEDIA_LIB_OBJS) $(LIBS_FOR_LIVEMEDIA_LIB)
 
 Media.$(CPP):		include/Media.hh
 include/Media.hh:	include/liveMedia_version.hh
-- 
2.26.0



More information about the live-devel mailing list