This is the mail archive of the pthreads-win32@sources.redhat.com mailing list for the pthreas-win32 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]

[PATCH] Cross-compiling with mingw32


Hi,

I'm posting a patch that I use to cross-compile with mingw32 on Linux.
It uses macros instead of referencing dlltool, gcc and g++ directly. I have
added a call to ranlib, which was needed. I also had to remove INLINE from
ptw32_relmillisecs, to link the GCE library.

For example the GC static library can be built with:

  make CC=i586-mingw32msvc-gcc RC=i586-mingw32msvc-windres RANLIB=i586-mingw32msvc-ranlib clean GC-static

Regards,
Mikael Magnusson

Attachment: pthreads-w32-2-6-0-cross.patch
Description: Text document


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