Re: [libav-devel] [PATCH] doc: mention option to mix shared/static libraries
On Tue, Jul 08, 2014 at 09:41:54PM -0400, Vittorio Giovara wrote: --- a/doc/platform.texi +++ b/doc/platform.texi @@ -24,6 +24,17 @@ If not, then you should install a different compiler that has no +@section Advanced linking configuration + +If you compiled Libav libraries statically, and you want to use them to s/,// +build your own shared library, you may need to force PIC support (with +@code{--enable-pic} during Libav configure) and set the following option s/set/add/ LGTM otherwise Diego ___ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel
[libav-devel] [PATCH] doc: mention option to mix shared/static libraries
From: Andrew Kelley superjo...@gmail.com Signed-off-by: Vittorio Giovara vittorio.giov...@gmail.com --- Slightly different wording, is it still ok? Vittorio doc/platform.texi | 11 +++ 1 file changed, 11 insertions(+) diff --git a/doc/platform.texi b/doc/platform.texi index 356ee2f..16c7874 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 set 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 -- 1.8.5.2 (Apple Git-48) ___ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel
Re: [libav-devel] [PATCH] doc: mention option to mix shared/static libraries
On 09/07/14 03:41, Vittorio Giovara wrote: From: Andrew Kelley superjo...@gmail.com Signed-off-by: Vittorio Giovara vittorio.giov...@gmail.com --- Slightly different wording, is it still ok? Vittorio doc/platform.texi | 11 +++ 1 file changed, 11 insertions(+) diff --git a/doc/platform.texi b/doc/platform.texi index 356ee2f..16c7874 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 set 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 Sure, why not? lu ___ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel
Re: [libav-devel] [PATCH] doc: mention option to mix shared/static libraries
On Jul 8, 2014 6:42 PM, Vittorio Giovara vittorio.giov...@gmail.com wrote: From: Andrew Kelley superjo...@gmail.com Signed-off-by: Vittorio Giovara vittorio.giov...@gmail.com --- Slightly different wording, is it still ok? Vittorio doc/platform.texi | 11 +++ 1 file changed, 11 insertions(+) Looks good. [...] Timothy ___ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel
[libav-devel] [PATCH] doc: mention option to mix shared/static libraries
From: Andrew Kelley superjo...@gmail.com Signed-off-by: Vittorio Giovara vittorio.giov...@gmail.com --- Something old that should be definitely documented. Vittorio doc/platform.texi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/doc/platform.texi b/doc/platform.texi index 356ee2f..7040d5c 100644 --- a/doc/platform.texi +++ b/doc/platform.texi @@ -24,6 +24,16 @@ 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 are compiling your own shared library (.so) and you want to link +libav as static library (.a) against it, you need to make sure to compile libav +with @code{--enable-pic} and add the following option to your LDFLAGS: + +@example +-Wl,-Bsymbolic +@end example + @section BSD BSD make will not build Libav, you need to install and use GNU Make -- 1.8.3.2 ___ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel
Re: [libav-devel] [PATCH] doc: mention option to mix shared/static libraries
On 03/07/14 22:22, Vittorio Giovara wrote: From: Andrew Kelley superjo...@gmail.com Signed-off-by: Vittorio Giovara vittorio.giov...@gmail.com --- Something old that should be definitely documented. Vittorio Looks like I forgot to push it. please do now (and update the wiki if you have time). lu ___ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel