This is the mail archive of the gcc@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: Crossed-Native Builds, Toolchain Relocation and MinGW


Ross Ridge wrote:
Ross Ridge wrote:
MinGW GCC is a native Win32 application and is unaffected by any mounts
you create with MSYS.

Dave Murphy wrote:
It's affected when you run from the msys bash shell, my apologies for
not being clear.

That makes no difference. MinGW GCC is a native Win32 application and
can't see any mounts you create with MSYS.
sorry but you're most definitely wrong about that.

davem@NEUROMANCER /e
$ cat /usr/local/test/test.c
#include <stdio.h>

int main(int argc, char **argv) {

       printf(argv[0]);
       return 0;
}

davem@NEUROMANCER /e
$ gcc -v
Reading specs from e:/MinGW/bin/../lib/gcc/mingw32/3.4.2/specs
Configured with: ../gcc/configure --with-gcc --with-gnu-ld --with-gnu-as --host=mingw32 --target=mingw32 --prefix=/mingw --enable-threads --disable-nls --enable-languages=c,c++,f77,ada,objc,java --disable-win32-registry --disable-shared --enable-sjlj-exceptions --enable-libgcj --disable-java-awt --without-x --enable-java-gc=boehm --disable-libgcj-debug --enable-interpreter --enable-hash-synchronization --enable-libstdcxx-debug
Thread model: win32
gcc version 3.4.2 (mingw-special)


davem@NEUROMANCER /e
$ gcc /usr/local/test/test.c -o /usr/local/test/test.exe

davem@NEUROMANCER /e
$ /usr/local/test/test.exe
E:\msys\local\test\test.exe
davem@NEUROMANCER /e
$

As you can see the paths are translated by the shell before being passed to windows executables.

Dave


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