Commit 0a57721d authored by David Fuhrmann's avatar David Fuhrmann

contrib: srt: Patch to add implicit link libraries to pkgconfig file

This library needs to add implicit link libraries like -lstdc++
to the private pkgconfig linking flags inside the pc file, to allow
linking with a non-C++ module (like we have in VLC).
parent f98e502f
--- srt.old/CMakeLists.txt 2017-12-09 09:10:02.000000000 +0100
+++ srt/CMakeLists.txt 2017-12-09 09:18:38.000000000 +0100
@@ -425,13 +425,15 @@
# This may cause trouble when you want to compile your app with static libstdc++;
# if your build requires it, you'd probably remove -lstdc++ from the list
# obtained by `pkg-config --libs`.
-# Some sensible solution for that is desired. Currently turned on only on demand.
-if ( LINUX )
+message("Adding the following implicit link libraries: ${CMAKE_CXX_IMPLICIT_LINK_LIBRARIES}")
+ else()
+ endif()
......@@ -24,6 +24,7 @@ $(TARBALLS)/srt-$(SRT_VERSION).tar.gz:
srt: srt-$(SRT_VERSION).tar.gz .sum-srt
$(APPLY) $(SRC)/srt/fix-pc.patch
$(APPLY) $(SRC)/srt/add-implicit-link-libraries.patch
$(call pkg_static,"scripts/")
mv srt-$(SRT_VERSION) $@ && touch $@
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment