]> code.ossystems Code Review - openembedded-core.git/commit
libav: use CCLD as ld
authorRobert Yang <liezhi.yang@windriver.com>
Tue, 26 Nov 2013 19:34:55 +0000 (03:34 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 26 Nov 2013 23:01:50 +0000 (23:01 +0000)
commit7afbc62be0e4720fb7cd2e44ec9e438a7e4ff78f
treed672cc11eb7cec0ce202ec5bde80c3a4e2d00c19
parenta1e8def7b335a69fb1ca412ad82cafa15350422e
libav: use CCLD as ld

The libav uses gcc as the ld, but it doesn't use CCLD, it may have
problems when target arch is 64 bit since it doesn't use the "-m64", the
poky's toolchain is fine since use "x86_64-poky-linux-gcc" without
"-m64" is default to 64 bit, but external toolchain *may* default to 32
bit (for example, when multilib is enabled and both 64 and 32 bit use
the same gcc, then the default arch can be either of them), then there
would be errors, the error is just like we run this in poky:

$ x86_64-poky-linux-gcc -m32 <file.c>

ld: skipping incompatible /path/to/sysroot/usr/lib64/x86_64-poky-linux/4.8.2/libgcc.a
when searching for -lgcc

Use CCLD as the ld will fix the problem since CCLD has been set
correctly.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-multimedia/libav/libav.inc