I actually built awhile ago a solaris cross compiler under GNU/Linux with Common C++ cross compiled, but I don't have those notes in front of me right now. I believe the key issues was to make sure the prefix fell into the correct install location for your cross compiler, and to use the --target= and --host= in configure. You may also need to set CC, CXX, LD, and AR in your environment to make sure they point to your cross compiler before running configure, and make sure your cross compiler binaries (say /usr/local/xxxx-yyy/bin) appear first in your PATH.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
Is there a cross-compilation FAQ or guide? I'm trying to build cc++ for a 2.4.x ARM distribution and not having much luck.
Thanks,
Tim
I actually built awhile ago a solaris cross compiler under GNU/Linux with Common C++ cross compiled, but I don't have those notes in front of me right now. I believe the key issues was to make sure the prefix fell into the correct install location for your cross compiler, and to use the --target= and --host= in configure. You may also need to set CC, CXX, LD, and AR in your environment to make sure they point to your cross compiler before running configure, and make sure your cross compiler binaries (say /usr/local/xxxx-yyy/bin) appear first in your PATH.