mingw-build-memo 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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. GMP
  8. ---
  9. HOST=i686-w64-mingw32
  10. ./configure \
  11. --disable-shared \
  12. --enable-static \
  13. --prefix=/usr/local/$HOST \
  14. --host=$HOST \
  15. --disable-cxx \
  16. --enable-fat \
  17. CFLAGS="-mtune=generic -O2 -g0"
  18. HOST=x86_64-w64-mingw32
  19. The configure command-line is the same as i686 version.
  20. Sqlite
  21. ------
  22. HOST=i686-w64-mingw32
  23. ./configure \
  24. --disable-shared \
  25. --enable-static \
  26. --prefix=/usr/local/$HOST \
  27. --host=$HOST \
  28. --build=`dpkg-architecture -qDEB_BUILD_GNU_TYPE`
  29. HOST=x86_64-w64-mingw32
  30. The configure command-line is the same as i686 version.
  31. C-Ares
  32. ------
  33. HOST=i686-w64-mingw32
  34. ./configure \
  35. --disable-shared \
  36. --enable-static \
  37. --without-random \
  38. --prefix=/usr/local/$HOST \
  39. --host=$HOST \
  40. --build=`dpkg-architecture -qDEB_BUILD_GNU_TYPE` \
  41. LIBS="-lws2_32"
  42. HOST=x86_64-w64-mingw32
  43. The configure command-line is the same as i686 version.
  44. libssh2
  45. -------
  46. HOST=i686-w64-mingw32
  47. ./configure \
  48. --disable-shared \
  49. --enable-static \
  50. --prefix=/usr/local/$HOST \
  51. --host=$HOST \
  52. --build=`dpkg-architecture -qDEB_BUILD_GNU_TYPE` \
  53. --with-crypto=wincng \
  54. LIBS="-lws2_32"
  55. HOST=x86_64-w64-mingw32
  56. The configure command-line is the same as i686 version.
  57. Zlib
  58. ----
  59. HOST=i686-w64-mingw32
  60. CC=$HOST-gcc \
  61. AR=$HOST-ar \
  62. LD=$HOST-ld \
  63. RANLIB=$HOST-ranlib \
  64. STRIP=$HOST-strip \
  65. ./configure \
  66. --prefix=/usr/local/$HOST \
  67. --libdir=/usr/local/$HOST/lib \
  68. --includedir=/usr/local/$HOST/include \
  69. --static
  70. HOST=x86_64-w64-mingw32
  71. The configure command-line is the same as i686 version.
  72. Expat
  73. -----
  74. HOST=i686-w64-mingw32
  75. ./configure \
  76. --disable-shared \
  77. --enable-static \
  78. --prefix=/usr/local/$HOST \
  79. --host=$HOST \
  80. --build=`dpkg-architecture -qDEB_BUILD_GNU_TYPE`
  81. HOST=x86_64-w64-mingw32
  82. The configure command-line is the same as i686 version.