2010/2/23 Michael Menegakis <[email protected]>: > 2010/2/23 Ludwig Nussel <[email protected]>: >> Michael Menegakis wrote: >>> The following patch adds support for builds on mingw-w64 for x86_64 >>> windows targets. >> >> Great :-) >> >>> - Makefile edits are slightly a mess (mostly done to get it going >> >> Would you mind cleaning it up so the patch can be applied? >> >>> Patch: http://www0.org/vm/diff-w64.bz2 >> >> Just attach or include patches inline. Makes commenting easier. > > ok the attached patch, > > - Adds support for MinGW-w64 x86_64 builds > > - Makefile attempts to be multi-platform and multi-arch (mainly by > replacing an uname check with a gcc -v check to avoid MSYS' uname > which prints i686 regardless. This can be debatable so If anyone > thinks another approach is better, I wouldn't easily argue. > > - I tested it on MinGW, MinGW-w64 and Debian stable amd64 (linux > required USE_LOCAL_HEADERS=0 but that was an issue on vanilla). > > Other changes from first patch: > - jpeg header files attempt to be multi-platform (testing didn't > complain on all 3 archs) > > A second attached file includes the needed libraries for > code/libs/win64 (SDL and cURL)
Corrections that can be done [perhaps better not to resend the patches since they're minimal]. libSDL.a can be removed since it's the static library and increases tree size (this includes its mention in the Makefle); alternatively it could be included as an alternative method which also requires -ldxdiag (maybe not). (minimal:) basetsd.h inclusion is not needed in vm_x86_64; probably a leftover from initial porting. _______________________________________________ ioquake3 mailing list [email protected] http://lists.ioquake.org/listinfo.cgi/ioquake3-ioquake.org By sending this message I agree to love ioquake3 and libsdl.
