mingw-build-memo 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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. Zlib
  45. ----
  46. HOST=i686-w64-mingw32
  47. CC=$HOST-gcc \
  48. AR=$HOST-ar \
  49. LD=$HOST-ld \
  50. RANLIB=$HOST-ranlib \
  51. STRIP=$HOST-strip \
  52. ./configure \
  53. --prefix=/usr/local/$HOST \
  54. --libdir=/usr/local/$HOST/lib \
  55. --includedir=/usr/local/$HOST/include \
  56. --static
  57. HOST=x86_64-w64-mingw32
  58. The configure command-line is the same as i686 version.
  59. Expat
  60. -----
  61. HOST=i686-w64-mingw32
  62. ./configure \
  63. --disable-shared \
  64. --enable-static \
  65. --prefix=/usr/local/$HOST \
  66. --host=$HOST \
  67. --build=`dpkg-architecture -qDEB_BUILD_GNU_TYPE`
  68. HOST=x86_64-w64-mingw32
  69. The configure command-line is the same as i686 version.