[Bug target/14666] Crossing from GNU/Linux to MinGW requires SEVERAL hacks
stl at caltech dot edu
gcc-bugzilla@gcc.gnu.org
Mon Mar 29 21:16:00 GMT 2004
------- Additional Comments From stl at caltech dot edu 2004-03-29 21:16 -------
I should add that dllcrt2.o needs to be copied too in the fourth hack,
otherwise DLLs can't be created.
As an experiment, I executed -print-search-dirs with bootstrapped vs. crossed
3.3.3. I replaced the directory that the compiler lives in with WHATEVER/.
Tidying things up a bit (leaving out "install:" which is apparently
irrelevant, eliminating non-existent directories, etc.), I get:
[CROSS]
programs:
WHATEVER/lib/gcc-lib/mingw32/3.3.3/
WHATEVER/lib/gcc-lib/
WHATEVER/mingw32/bin/mingw32/3.3.3/
WHATEVER/mingw32/bin/
libraries:
WHATEVER/lib/gcc-lib/mingw32/3.3.3/
WHATEVER/lib/gcc-lib/
WHATEVER/mingw32/lib/mingw32/3.3.3/
WHATEVER/mingw32/lib/
[BOOTSTRAP]
programs:
WHATEVER/lib/gcc-lib/i686-pc-mingw32/3.3.3/
WHATEVER/lib/gcc-lib/
WHATEVER/i686-pc-mingw32/bin/i686-pc-mingw32/3.3.3/
WHATEVER/i686-pc-mingw32/bin/
libraries:
WHATEVER/lib/gcc-lib/i686-pc-mingw32/3.3.3/
WHATEVER/lib/gcc-lib/
WHATEVER/i686-pc-mingw32/lib/i686-pc-mingw32/3.3.3/
WHATEVER/i686-pc-mingw32/lib/
WHATEVER/lib/i686-pc-mingw32/3.3.3/
WHATEVER/lib/
The cross was made with a target of mingw32 instead of i686-pc-mingw32, but
that is irrelevant here.
Note that the bootstrap has an extra directory in the "libraries:" which is
not present for the cross:
WHATEVER/lib/
crt2.o and dllcrt2.o live here. If the cross had this directory too, I bet the
fourth hack would not be necessary.
The crossed 3.3.3 still manages to find WHATEVER/lib/libFOO.a when -lFOO is
given.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14666
More information about the Gcc-bugs
mailing list