]> git.sesse.net Git - ffmpeg/blobdiff - doc/platform.texi
Merge commit '389380c27915b0505fed538cd54c035c891fabd9'
[ffmpeg] / doc / platform.texi
index 86dab54091e75359cde1b96fa1e3defd7dad1c0f..fb08a1e422320482c6776a0a63f323c150f22791 100644 (file)
@@ -24,6 +24,20 @@ 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 FFmpeg 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 FFmpeg configure) and add the following option
+to your project LDFLAGS:
+
+@example
+-Wl,-Bsymbolic
+@end example
+
+If your target platform requires position independent binaries, you should
+pass the correct linking flag (e.g. @code{-pie}) to @code{--extra-ldexeflags}.
+
 @section BSD
 
 BSD make will not build FFmpeg, you need to install and use GNU Make