This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: -arch: not found
- From: Andrew Haley <aph at redhat dot com>
- To: Nick Leli <nicholasleli at gmail dot com>, gcc-help at gcc dot gnu dot org
- Date: Fri, 6 Jan 2017 09:52:19 +0000
- Subject: Re: -arch: not found
- Authentication-results: sourceware.org; auth=none
- References: <CALn2uu3DUnbsSMRympm3M8S56SYTpiT5=7UuVngkFGE9tv5N4A@mail.gmail.com>
On 05/01/17 23:21, Nick Leli wrote:
> I was under the impression that gcc can be built for any architecture,
> as long as you specify what you want to build it for. Is there
> something additional I need to do in order to get a working compiler
> for a different architecture? Any insight is greatly appreciated.
You'll need the target headers and libraries. Copy the root
filesystem of your target machine to directory XX (outside the GCC
tree) and configure --with-sysroot=XX. Don't use --without-headers.
Andrew.