Guest User

Untitled

a guest
Jun 10th, 2016
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 1.37 KB | None | 0 0
  1. :: Get and install MinGW-w64 32 bits: http://downloads.sourceforge.net/project/msys2/Base/i686/msys2-i686-20150916.exe
  2.  
  3. pacman -S mingw-w64-i686-gcc
  4. pacman -S make
  5. pacman -S wget
  6. pacman -S tar
  7. pacman -S mingw-w64-i686-curl
  8. pacman -S mingw-w64-i686-libgcrypt
  9. :: add path "C:\msys32\mingw32\bin" (without quotes) into %PATH% enviroment variable
  10. cd ~
  11. wget -c http://ftpmirror.gnu.org/libmicrohttpd/libmicrohttpd-0.9.50.tar.gz
  12. tar -zxvf libmicrohttpd-0.9.50.tar.gz
  13. cd libmicrohttpd-0.9.50/
  14. CFLAGS='-Os -s' ./configure
  15. :: You will see a report like:
  16. :: ...
  17. :: configure: libmicrohttpd 0.9.50 Configuration Summary:
  18. ::   Cross-compiling:   no
  19. ::   Operating System:  mingw32
  20. ::   Threading lib:     w32
  21. ::   libcurl (testing): yes
  22. ::   Target directory:  /usr/local
  23. ::   Messages:          yes
  24. ::   Basic auth.:       yes
  25. ::   Digest auth.:      yes
  26. ::   Postproc:          yes
  27. ::   HTTPS support:     yes (using libgnutls and libgcrypt)
  28. ::   poll support:      no
  29. ::   epoll support:     no
  30. ::   build docs:        yes
  31. ::   build examples:    yes
  32. ::
  33. :: configure: HTTPS subsystem configuration:
  34. ::   License         :  LGPL only
  35. make
  36. make install-strip
  37. :: Finally, get compiled shared library at "C:\msys32\usr\local\bin\" and enjoy it! :-)
  38.  
  39. :: If you want to rebuild MHD, do:
  40. ::
  41. :: $ make clean
  42. :: $ CFLAGS='-Os -s' ./configure
  43. :: $ make -j8
  44. :: $ make install-strip
Advertisement
Add Comment
Please, Sign In to add comment