This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [MinGW] Set NATIVE_SYSTEM_HEADER_DIR relative to configured prefix
- From: Ross Ridge <rridge at csclub dot uwaterloo dot ca>
- To: gcc at gcc dot gnu dot org
- Date: Tue, 06 Jun 2006 01:13:27 -0400
- Subject: Re: [MinGW] Set NATIVE_SYSTEM_HEADER_DIR relative to configured prefix
Ranjit Mathew wrote:
> 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. :-(
The GCC I get from my native MinGW build of the trunk is relocatable:
e:\util\mygcc.new\bin\gcc -v -E -o nul -x c x.c
Using built-in specs.
Target: mingw32
Configured with: ../gcc/configure --prefix=/src/gcc/runtime --target=mingw32 --host=mingw32 --enable-languages=c,c++ --enable-threads=win32 --with-win32-nlsapi=unicode --enable-bootstrap --disable-werror --with-ld=/src/gcc/runtime/bin/ld --with-as=/src/gcc/runtime/bin/as
Thread model: win32
gcc version 4.2.0 20060513 (experimental)
e:/util/mygcc.new/bin/../libexec/gcc/mingw32/4.2.0/cc1.exe -E -quiet -v -iprefix e:\util\mygcc.new\bin\../lib/gcc/mingw32/4.2.0/ x.c -o nul.exe -mtune=i386
ignoring nonexistent directory "e:/util/mygcc.new/bin/../lib/gcc/mingw32/4.2.0/../../../../mingw32/include"
ignoring nonexistent directory "/src/gcc/runtime/include"
ignoring nonexistent directory "/src/gcc/runtime/include"
ignoring nonexistent directory "/src/gcc/runtime/lib/gcc/mingw32/4.2.0/include"
ignoring nonexistent directory "/src/gcc/runtime/mingw32/include"
ignoring nonexistent directory "/mingw/include"
#include "..." search starts here:
#include <...> search starts here:
e:/util/mygcc.new/bin/../lib/gcc/mingw32/4.2.0/../../../../include
e:/util/mygcc.new/bin/../lib/gcc/mingw32/4.2.0/include
End of search list.
It picks up the "system include directory" without a problem. What
exactly is the error you're getting that indicates that your compiled
version of GCC isn't relocatable?
Ross Ridge