[poky] Using non-distro gcc
Chin Huat Ang
chang at altera.com
Wed Feb 22 00:00:48 PST 2012
My Centos 5.6's gcc is a bit outdated and I'm seeing compiler bugs when compiling elfutils-native. As such I've rolled my own gcc 4.5.3 with MPC/MPFR/GMP all installed to /opt, my intention is to make the new toolchain self-contained and reusable on other machines/distros.
The problem is that, in order to use this gcc I will need to set LD_LIBRARY_PATH so that it can picks up MPC/MPFR/GMP from /opt.
Poky seems to always build with pristine environment (i.e. no LD_LIBRARY_PATH), so my new toolchain is unusable. This problem will not happen on distro gcc as MPC et al are always installed in /usr/lib.
Is there a way to tell Poky to set LD_LIBRARY_PATH whenever it uses the non-distro toolchain? Or is it the right thing to do at all?
________________________________
Confidentiality Notice.
This message may contain information that is confidential or otherwise protected from disclosure. If you are not the intended recipient, you are hereby notified that any use, disclosure, dissemination, distribution, or copying of this message, or any attachments, is strictly prohibited. If you have received this message in error, please advise the sender by reply e-mail, and delete the message and any attachments. Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/poky/attachments/20120222/f3cd2d71/attachment.html>
More information about the poky
mailing list