]> git.sesse.net Git - vlc/commit
x264: Use -Bsymbolic to fix static link
authorPierre Ynard <linkfanel@yahoo.fr>
Thu, 26 Mar 2009 17:11:17 +0000 (18:11 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Sun, 29 Mar 2009 16:37:14 +0000 (18:37 +0200)
commitc20cca8148346e2a3b1a7c0bae69fa74675731ed
treece993541ea44720a27fbcb572682c3c1f197a8c4
parentb81940df0db6bc1ec78f4832b0bebd71ed4de69e
x264: Use -Bsymbolic to fix static link

On my linux x86_64 system, when trying to statically link the x264
module against libx264, I get the following error:

/usr/bin/ld: /usr/local/lib/libx264.a(cabac-a.o): relocation
R_X86_64_PC32 against symbol `x264_cabac_range_lps' can not be used when
making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value

Even though libx264 was compiled as PIC. Dynamically linking against the
shared library, built during the same process, works well.

The x264 folks said that VLC needed to use the -Bsymbolic flag to allow
conversation of a static PIC library into a shared library, so that's
what I did, and it works for me.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
configure.ac