diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2013-11-27 03:34:55 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-11-27 11:51:23 +0000 |
commit | 8bec473ad5390eada21ae9d5cef0e24c913696e3 (patch) | |
tree | 720fb0302f6474f882ff57748e4660428d827313 /meta/recipes-multimedia | |
parent | a216cc165440a8059e8b93ee633c873a0155a452 (diff) | |
download | poky-8bec473ad5390eada21ae9d5cef0e24c913696e3.tar.gz |
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.
(From OE-Core rev: 7afbc62be0e4720fb7cd2e44ec9e438a7e4ff78f)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-multimedia')
-rw-r--r-- | meta/recipes-multimedia/libav/libav.inc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/libav/libav.inc b/meta/recipes-multimedia/libav/libav.inc index eefee6658c..4c96f24a86 100644 --- a/meta/recipes-multimedia/libav/libav.inc +++ b/meta/recipes-multimedia/libav/libav.inc | |||
@@ -45,6 +45,7 @@ EXTRA_OECONF = " \ | |||
45 | \ | 45 | \ |
46 | --enable-avserver \ | 46 | --enable-avserver \ |
47 | --enable-avplay \ | 47 | --enable-avplay \ |
48 | --ld="${CCLD}" \ | ||
48 | --enable-libtheora \ | 49 | --enable-libtheora \ |
49 | --enable-libvorbis \ | 50 | --enable-libvorbis \ |
50 | --arch=${TARGET_ARCH} \ | 51 | --arch=${TARGET_ARCH} \ |