This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: -arch: not found


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]