liba52: Disable `-prefer-non-pic` to enable `-fPIC`.
authorPaul Menzel <paulepanter@users.sourceforge.net>
Mon, 15 Mar 2010 04:55:56 +0000 (04:55 +0000)
committerPhilip Balister <philip@balister.org>
Mon, 15 Mar 2010 22:17:53 +0000 (18:17 -0400)
commitf92b2201ab4974bc1e2fed1b6ee9906774baf928
tree77c52cb011fb7fa8f50222970c85880d1099aab7
parentdf63fa123c0da7cdfa35c4c935667bf767e8b892
liba52: Disable `-prefer-non-pic` to enable `-fPIC`.

Using GCC 4.4.2 and Binutils 2.20 gives the following error.

    …/bin/ld: .libs/imdct.o: relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC

Therefore enable `-fPIC` with this patch taken from Debian [1].

[1] http://patch-tracker.debian.org/patch/series/view/a52dec/0.7.4-13/01-enable-pic.diff

Signed-off-by: Paul Menzel <paulepanter@users.sourceforge.net>
Signed-off-by: Philip Balister <philip@balister.org>
recipes/liba52/files/01-enable-pic.diff [new file with mode: 0644]
recipes/liba52/liba52_0.7.4.bb