Getting target tripple - config.guess script

Hello,

During passing week I was reading LFS (btw. great lecture, which I encourage you to read), I came across cross compilation (LFS is not intented for that, but it gives me valuable very basic knowledge). On this page Toolchain Technical Notes is mentioned that getting target tripple can be achieved with gcc or with custom script. Everyone knows that regular android doesn’t have gcc. This custom script is called guess.config and is part of GNU gettext package. And many other projects create its own version. E.g.

I have used 3 versions:

I have run it against Odroid C4 with Aarch Android(results are respective to mentionen above):

  • aarch64-unknown-linux-gnu
  • aarch64-pc-linux-gnuoldld
  • aarch64-unknown-linux-gnu

So this is post to maybe help other people in discovering theirs devices.

3 Likes