0001-shared-libraries.patch

 1--- a/BUILD.gn
 2+++ b/BUILD.gn
 3@@ -143,8 +143,12 @@
 4 # target_defaults and direct_dependent_settings.
 5 config("common_inherited_config") {
 6   defines = [ "PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII=0" ]
 7-  cflags = []
 8-  ldflags = []
 9+  cflags = [ "-fvisibility=default" ]
10+  ldflags = [ "-lavutil", "-lavformat", "-lavcodec" ]
11+
12+  if (is_linux) {
13+    ldflags += [ "-Wl,--version-script=" + rebase_path("//libwebrtc.version", root_build_dir) ]
14+  }
15
16   if (rtc_objc_prefix != "") {
17     defines += [ "RTC_OBJC_TYPE_PREFIX=${rtc_objc_prefix}" ]