mingw-build-memo 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. OpenSSL
  2. -------
  3. HOST=i686-w64-mingw32
  4. ./Configure --cross-compile-prefix=$HOST- --prefix=/usr/local/$HOST mingw
  5. HOST=x86_64-w64-mingw32
  6. ./Configure --cross-compile-prefix=$HOST- --prefix=/usr/local/$HOST mingw64
  7. Sqlite
  8. ------
  9. HOST=i686-w64-mingw32
  10. ./configure \
  11. --disable-shared \
  12. --enable-static \
  13. --prefix=/usr/local/$HOST \
  14. --host=$HOST \
  15. --build=`dpkg-architecture -qDEB_BUILD_GNU_TYPE`
  16. HOST=x86_64-w64-mingw32
  17. The configure command-line is the same as i686 version.
  18. C-Ares
  19. ------
  20. HOST=i686-w64-mingw32
  21. ./configure \
  22. --disable-shared \
  23. --enable-static \
  24. --without-random \
  25. --prefix=/usr/local/$HOST \
  26. --host=$HOST \
  27. --build=`dpkg-architecture -qDEB_BUILD_GNU_TYPE` \
  28. LIBS="-lws2_32"
  29. HOST=x86_64-w64-mingw32
  30. The configure command-line is the same as i686 version.
  31. Zlib
  32. ----
  33. HOST=i686-w64-mingw32
  34. CC=$HOST-gcc \
  35. AR=$HOST-ar \
  36. LD=$HOST-ld \
  37. RANLIB=$HOST-ranlib \
  38. STRIP=$HOST-strip \
  39. ./configure \
  40. --prefix=/usr/local/$HOST \
  41. --libdir=/usr/local/$HOST/lib \
  42. --includedir=/usr/local/$HOST/include \
  43. --static
  44. HOST=x86_64-w64-mingw32
  45. The configure command-line is the same as i686 version.
  46. Expat
  47. -----
  48. HOST=i686-w64-mingw32
  49. ./configure \
  50. --disable-shared \
  51. --enable-static \
  52. --prefix=/usr/local/$HOST \
  53. --host=$HOST \
  54. --build=`dpkg-architecture -qDEB_BUILD_GNU_TYPE`
  55. HOST=x86_64-w64-mingw32
  56. The configure command-line is the same as i686 version.