Guest User

Untitled

a guest
Jun 10th, 2016
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 1.48 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. :: add path "C:\msys32\mingw32\bin" (without quotes) to %PATH% enviroment variable and restart your console window
  8. cd ~
  9. wget -c http://ftpmirror.gnu.org/libmicrohttpd/libmicrohttpd-0.9.50.tar.gz
  10. tar -zxvf libmicrohttpd-0.9.50.tar.gz
  11. cd libmicrohttpd-0.9.50/
  12. CFLAGS='-Os -s' ./configure --disable-doc --disable-examples --disable-messages --enable-https=no --disable-bauth --disable-dauth --disable-curl
  13. :: You will see a report like:
  14. :: ...
  15. :: configure: libmicrohttpd 0.9.50 Configuration Summary:
  16. ::   Cross-compiling:   no
  17. ::   Operating System:  mingw32
  18. ::   Threading lib:     w32
  19. ::   libcurl (testing): no, many unit tests will not run
  20. ::   Target directory:  /usr/local
  21. ::   Messages:          no
  22. ::   Basic auth.:       no
  23. ::   Digest auth.:      no
  24. ::   Postproc:          yes
  25. ::   HTTPS support:     no (disabled)
  26. ::   poll support:      no
  27. ::   epoll support:     no
  28. ::   build docs:        no
  29. ::   build examples:    no
  30. make
  31. make install-strip
  32. :: Finally, get compiled shared library at "C:\msys32\usr\local\bin\" and enjoy it! :-)
  33. :: If you want to rebuild MHD, do:
  34. ::
  35. :: $ make clean
  36. :: $ CFLAGS='-Os -s' ./configure --disable-doc --disable-examples --disable-messages --enable-https=no --disable-bauth --disable-dauth --disable-curl
  37. :: $ make -j8
  38. :: $ make install-strip
Advertisement
Add Comment
Please, Sign In to add comment