doc: mention option to mix shared/static libraries
authorAndrew Kelley <superjoe30@gmail.com>
Thu, 3 Jul 2014 20:22:33 +0000 (16:22 -0400)
committerVittorio Giovara <vittorio.giovara@gmail.com>
Wed, 9 Jul 2014 13:57:10 +0000 (09:57 -0400)
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
doc/platform.texi

index 356ee2f..3ada146 100644 (file)
@@ -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