From 33a7b453a8e1f090c694ea4f36769dc837be88f0 Mon Sep 17 00:00:00 2001
From: Andrew Kelley <superjoe30@gmail.com>
Date: Thu, 3 Jul 2014 16:22:33 -0400
Subject: [PATCH] doc: mention option to mix shared/static libraries

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
---
 doc/platform.texi | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/doc/platform.texi b/doc/platform.texi
index 356ee2f7471..3ada146e792 100644
--- a/doc/platform.texi
+++ b/doc/platform.texi
@@ -24,6 +24,17 @@ If not, then you should install a different compiler that has no
 hard-coded path to gas. In the worst case pass @code{--disable-asm}
 to configure.
 
+@section Advanced linking configuration
+
+If you compiled Libav libraries statically and you want to use them to
+build your own shared library, you may need to force PIC support (with
+@code{--enable-pic} during Libav configure) and add the following option
+to your project LDFLAGS:
+
+@example
+-Wl,-Bsymbolic
+@end example
+
 @section BSD
 
 BSD make will not build Libav, you need to install and use GNU Make
-- 
GitLab