]> code.ossystems Code Review - openembedded-core.git/commit
gcc-4.8: fix compiling GCC when /usr/lib/libstdc++.so is present
authorJonathan Liu <net147@gmail.com>
Sun, 21 Jul 2013 10:07:42 +0000 (20:07 +1000)
committerSaul Wold <sgw@linux.intel.com>
Fri, 26 Jul 2013 06:44:26 +0000 (23:44 -0700)
commitec95dfeea1f17eb232563e105085852058a86c0b
tree23b5a71a19d2b4817cf4ca69b3a0da135c97912a
parentac5d20f4adac69ea1702694fb50849c9e465b443
gcc-4.8: fix compiling GCC when /usr/lib/libstdc++.so is present

libtool is picking up libstdc++.so from /usr/lib when trying to link
libasan due to libstdc++.la containing libdir="/usr/lib". If compiling
for x86 and the host has 64-bit /usr/lib/libstdc++.so, the compilation
fails linking libasan with:
/usr/lib/libstdc++.so: could not read symbols: File in wrong format

To resolve this, patch libtool to look for the library in the path the
.la is contained in rather than use the libdir which usually points to
a host path.

[YOCTO #4879]

Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/recipes-devtools/gcc/gcc-4.8.inc
meta/recipes-devtools/gcc/gcc-4.8/0041-libtool-avoid-libdir.patch [new file with mode: 0644]