mingw-build-memo 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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. --without-openssl \
  54. --with-wincng \
  55. LIBS="-lws2_32"
  56. HOST=x86_64-w64-mingw32
  57. The configure command-line is the same as i686 version.
  58. Zlib
  59. ----
  60. HOST=i686-w64-mingw32
  61. CC=$HOST-gcc \
  62. AR=$HOST-ar \
  63. LD=$HOST-ld \
  64. RANLIB=$HOST-ranlib \
  65. STRIP=$HOST-strip \
  66. ./configure \
  67. --prefix=/usr/local/$HOST \
  68. --libdir=/usr/local/$HOST/lib \
  69. --includedir=/usr/local/$HOST/include \
  70. --static
  71. HOST=x86_64-w64-mingw32
  72. The configure command-line is the same as i686 version.
  73. Expat
  74. -----
  75. HOST=i686-w64-mingw32
  76. ./configure \
  77. --disable-shared \
  78. --enable-static \
  79. --prefix=/usr/local/$HOST \
  80. --host=$HOST \
  81. --build=`dpkg-architecture -qDEB_BUILD_GNU_TYPE`
  82. HOST=x86_64-w64-mingw32
  83. The configure command-line is the same as i686 version.