This is the mail archive of the 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: [MinGW] Set NATIVE_SYSTEM_HEADER_DIR relative to configured prefix

On 6/3/06, Danny Smith <> wrote:

Historically, mingw host doesn't have a "system include dir". Instead host relies on a local dir being in consistent place relative to exec prefix, and this in turn means that it is consistent relative to the gcc driver, ie, in x-mingw:

# Make local_includedir relative to EXEC_PREFIX
local_includedir=$(libsubdir)/$(unlibsubdir)/..`echo $(exec_prefix) |
sed -e 's|^$(prefix)||' -e 's|/[^/]*|/..|g'`/include

This seems to be in place in the current mainline, but I still can't get GCC to be properly relocatable. Danny, I'm using the same configure flags that you have used for GCC 3.4.5 MinGW release (*except* for --prefix=/mingw, which is something like --prefix=/j/mingw/mgw for me), but the GCC I get is not relocatable at all, while I can put the MinGW GCC 3.4.5 release anywhere on the filesystem and it still works. :-(

By the way, the gcc driver is passing -iprefix correctly to
the cc1 executable. A MinGW native bootstrap with MSYS
takes a *lot* of time on my poor PC, so before I try again
with --prefix=/mingw, is there anything else that I might
be missing?


Ranjit Mathew      Email: rmathew AT gmail DOT com

Bangalore, INDIA. Web:

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