Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/1] libav: use CCLD as ld
@ 2013-11-26 19:34 Robert Yang
  2013-11-26 19:34 ` [PATCH 1/1] " Robert Yang
  0 siblings, 1 reply; 2+ messages in thread
From: Robert Yang @ 2013-11-26 19:34 UTC (permalink / raw)
  To: openembedded-core

The following changes since commit dd2ea6878a527df53e0eaa1a59d98c7afa6f4078:

  coreutils 6.9: fix coreutils.texi (2013-11-26 18:33:16 +0800)

are available in the git repository at:

  git://git.pokylinux.org/poky-contrib robert/libav
  http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=robert/libav

Robert Yang (1):
  libav: use CCLD as ld

 meta/recipes-multimedia/libav/libav.inc | 1 +
 1 file changed, 1 insertion(+)

-- 
1.8.3.1



^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH 1/1] libav: use CCLD as ld
  2013-11-26 19:34 [PATCH 0/1] libav: use CCLD as ld Robert Yang
@ 2013-11-26 19:34 ` Robert Yang
  0 siblings, 0 replies; 2+ messages in thread
From: Robert Yang @ 2013-11-26 19:34 UTC (permalink / raw)
  To: openembedded-core

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>
---
 meta/recipes-multimedia/libav/libav.inc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-multimedia/libav/libav.inc b/meta/recipes-multimedia/libav/libav.inc
index eefee66..4c96f24 100644
--- a/meta/recipes-multimedia/libav/libav.inc
+++ b/meta/recipes-multimedia/libav/libav.inc
@@ -45,6 +45,7 @@ EXTRA_OECONF = " \
     \
     --enable-avserver \
     --enable-avplay \
+    --ld="${CCLD}" \
     --enable-libtheora  \
     --enable-libvorbis \
     --arch=${TARGET_ARCH} \
-- 
1.8.3.1



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-11-26 11:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-26 19:34 [PATCH 0/1] libav: use CCLD as ld Robert Yang
2013-11-26 19:34 ` [PATCH 1/1] " Robert Yang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox