Charles Wilson wrote:
On 8/23/2010 1:44 AM, Ralf Wildenhues wrote:
* Charles Wilson wrote on Mon, Aug 23, 2010 at 07:35:59AM CEST:
libltdl/m4/libtool.m4 (_LT_WITH_SYSROOT): Fix typo.
tests/sysroot.at: Search also for crt0.o to accomodate cygwin.
accommodate
fixed.
Discovered a few minor issues while testing with linux->cygwin
cross compiler.
How did the crt2.o issue manifest itself (best cut and paste error
so web searches will find this thread)?
checking for sysroot...no
when the toolchain *does* support sysroots. Basically, if sysroot.at
can't figure out both the sysroot AND the prefix *under* the sysroot, it
skips the test (I think this is the right behavior).
The problem was that cygwin doesn't have crt1.o, crt2.o, or crti.o, so
all of the attempts to determine the prefix failed.
--
Chuck
$ /opt/mingw/i386-mingw32msvc/bin/gcc --print-file-name crt0.o; echo $?
crt0.o
0
$ /opt/mingw/i386-mingw32msvc/bin/gcc --print-file-name crt1.o; echo $?
/opt/mingw/lib/gcc/i386-mingw32msvc/3.4.5/../../../../i386-mingw32msvc/lib/crt1.o
0
This is my result is cross-compiler is not build with sysroot.
Roumen