556 556 * mkdir fossil; cd fossil
557 557 * clone fossil repository. e.g. fossil clone http://www.fossil-scm.org/ myclone.fossil
558 558 * mkdir src; cd src
559 559 * fossil open ../myclone.fossil
560 560
561 561 <h4>Compiling fossil source code</h4>
562 562 * If you want <strong>https</strong> supports
563 - <ul><li>Change Makefile.w32. Change the line "LIB += -lcrypto -lssl" to "LIB = -lssl -lcrypto -lgdi32 -lmingwex -lz -lws2_32".</li>
564 - <li>make -f Makefile.w32 FOSSIL_ENABLE_SSL=1</li> </ul>
563 + <ul><li>make -f Makefile.w32 FOSSIL_ENABLE_SSL=1 LIB="-lssl -lcrypto -lgdi32 -lmingwex -lz -lws2_32"</li> </ul>
565 564 * else do make -f Makefile.w32
566 565
567 566
568 567 <h3>Compiling under linux for windows with Mingw</h3>
569 568 This is called cross compiling. I'm using [http://www.archlinux.org/|Arch linux] distribution which
570 569 uses the package manager pacman to install packages. If you have a differen linux distribution the packages might be called different. I assume a login name of renez substitute yours were apropiate.
571 570
................................................................................
586 585 * cd ; mkdir fossil; cd fossil
587 586 * clone fossil repository. e.g. fossil clone http://www.fossil-scm.org/ myclone.fossil
588 587 * mkdir src; cd src
589 588 * fossil open ../myclone.fossil
590 589
591 590 <h4>Compiling fossil source code</h4>
592 591 * If you want <strong>https</strong> supports
593 - <ul><li>Change Makefile.w32. Change the line "LIB += -lcrypto -lssl" to "LIB = -lssl -lcrypto -lgdi32 -lmingwex -lz -lws2_32".</li>
594 - <li>make -f Makefile.w32 TCC="i486-mingw32-gcc -Os -Wall -DFOSSIL_I18N=0 -L/usr/i486-mingw32/lib -I/usr/i486-mingw32/include -DFOSSIL_ENABLE_SSL=1" FOSSIL_ENABLE_SSL=1</li> </ul>
592 + <ul><li>make -f Makefile.w32 TCC="i486-mingw32-gcc -Os -Wall -DFOSSIL_I18N=0 -L/usr/i486-mingw32/lib -I/usr/i486-mingw32/include -DFOSSIL_ENABLE_SSL=1" FOSSIL_ENABLE_SSL=1 LIB="-lssl -lcrypto -lgdi32 -lmingwex -lz -lws2_32"</li> </ul>
595 593 * else make -f Makefile.w32 TCC="i486-mingw32-gcc -Os -Wall -DFOSSIL_I18N=0 -L/usr/i486-mingw32/lib -I/usr/i486-mingw32/include "
596 594
597 595 <h4>Distribution of cross compiled fossil.exe</h4>
598 596 Because you have linked against zlib and maybe ssl you need to include from <strong>/usr/i486-mingw32/bin</strong> zlib1.dll and, optional, libssl32.dll (and maybe also libeay32.dll)
599 597
600 598 <h4>testing the cross compiled fossil.exe</h4>
601 599 * copy fossil.exe and the dll's to a windows system. For testing purpose all in one directory. For production use a directory in your PATH