This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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: Problems with first steps using a MinGW based linux --> windowscross compiler


David Philippi wrote:
I've just tried for the first time to use a cross compiler without too
much success yet. I tried the following commands:

cross-configure.sh CC=/usr/local/cross-tools/bin/i386-mingw32msvc-gcc
CXX=/usr/local/cross-tools/bin/i386-mingw32msvc-c++
--prefix=/usr/local/mingw

cross-make.sh CC=/usr/local/cross-tools/bin/i386-mingw32msvc-gcc
CXX=/usr/local/cross-tools/bin/i386-mingw32msvc-c++

You forgot to mention where those scripts came from. I imagine you're following http://www.libsdl.org/extras/win32/cross/README.txt ?

What do I need to add to the linking stage to get the symbol? Patching
the Makefile or configure script isn't unusual for me anyway. In fact, I
had to patch configure to get a non working check about endianess out of
the way (ok, really hard to check for a cross compile *g*).

You shouldn't have to patch the configure script for endian checks if they're using the standard check; just regenerate it with a modern autoconf (1.52 or later, say). (And *that* may require a bit of patching to configure.in; if so, please contribute the changes back to the mailing list for the program you're trying to compile.)

You also forgot to mention what program you're trying to cross-compile.

- Dan

--
Dan Kegel
http://www.kegel.com
http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=78045


------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


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