This is the mail archive of the
mailing list for the GCC project.
Re: setting include paths for a cross compiler in gcc 3.4.6
- From: pinskia at gmail dot com
- To: "apl at alum dot mit dot edu" <apl at alum dot mit dot edu>
- Cc: "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Date: Thu, 6 Aug 2015 13:50:48 +0200
- Subject: Re: setting include paths for a cross compiler in gcc 3.4.6
- Authentication-results: sourceware.org; auth=none
- References: <05D7E95E-AA68-4971-A50C-C52E49D58CF9 at me dot com>
> On Aug 6, 2015, at 1:27 PM, Alan Lehotsky <email@example.com> wrote:
> I have a funny situation where Iâm trying to build a cross compiler for x86 hosted on x86 where Iâd like to use the native headers and libraries.
> I tried defining INCLUDE_DEFAULTS, and that didnât help. The documentation says itâs ignored for cross compilers.
> Any suggestions, or am I going to have to fool the configuration scripts into thinking this is a host=target configuration?
Can't you use --sysroot=/ ? Or rather --with-sysroot=/ ?
Also 3.4 was released 10 years ago you might want to think about moving forward to a newer gcc.