This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Finding canonical names of systems
- From: "Ulf Magnusson" <ulfalizer at gmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Tue, 28 Nov 2006 04:25:33 +0100
- Subject: Finding canonical names of systems
How are you supposed to find the canonical name of a system (of known
type) in CPU-Vendor-OS form in the general case? If you have access to
a system of that particular type, you can run config.guess to find
out, but you might not have, and that approach won't work for many
systems anyway. The canonical name needs to be known e.g. when
cross-compiling and building cross-compilers.
The only way I could find to get a list of canonical CPU, Vendor and
OS strings was to dig through /usr/share/gnuconfig/config.sub on my
GNU/Linux systems, which needless to say is about as bad as it gets
from a documentation perspective. Is there any other way to get a list
mapping CPU's, Vendors and OS's to their canonical strings? If there
isn't, I think it's making things much more complicated than they
should be.
/Ulf Magnusson