I have been looking  at cross compiling fossil and have a bit less
intrusive instructions because the Makefile already have a provision for
cross-compiling.

1) Install mingw32-gcc on arch you type Pacman -S mingw32-gcc
2) download zlib unpack and
   CC=i486-mingw32-gcc ./configure
   i486-mingw32-ranlib libz.a
3) Become root and cp libz.a, zconf.h and zlib.h to the mingw dirs mine
   cp libz.a /usr/i486-ming32/lib
   cp zconf.h zlib.h /usr/486-mingw32/include
   exit from root
   You kan remove the zlib source it is not needed anymore.
4) edit Makefile and Makefile.w32
   a) add a line "TARGETCC=gcc"
   b) Change gcc in every TCC= line to $(TARGETCC)

5) if you want to create windows binary do
   make -f Makefile.w32 TARGETCC=i486-mingw32-gcc

6) if you have installed wine and want to a have wine binary
   make TARGETCC=winegcc

Perhaps the under 4 mentioned changes can be added to the Makefiles by
someone with checkin capabilities?

-- 
Rene de Zwart

_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to