NXP offers SDK 2.0 for the e6500 processor:
https://www.nxp.com/docs/en/supporting-information/QORIQ-SDK-2.0-IC-REV0.pdf
Look at the Section 3.3.7 in this documentation for installing standalone toolchain.
Each time you wish to use the SDK in a new shell session, you need to source the environment setup script e.g.
$ . /opt/fsl-qoriq/2.0/environment-setup-ppce6500-fsl-linux
Check your C++ compiler using the following command:
$ echo $CXX
You should see the similar message:
powerpc64-fsl-linux-g++ -mhard-float -m64 -mcpu=e6500 --sysroot=/opt/fsl-qoriq/2.0/sysroots/ppc64e6500-fsl-linux
See also the following pages about adding new library to g++:
https://stackoverflow.com/questions/6141147/how-do-i-include-a-path-to-libraries-in-g
https://stackoverflow.com/questions/2726993/how-to-specify-preference-of-library-path/2727301
Have a great day,
Pavel Chubakov
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------