Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- :: Get and install MinGW-w64 32 bits: http://downloads.sourceforge.net/project/msys2/Base/i686/msys2-i686-20150916.exe
- pacman -S mingw-w64-i686-gcc
- pacman -S make
- pacman -S wget
- pacman -S tar
- :: add path "C:\msys32\mingw32\bin" (without quotes) to %PATH% enviroment variable and restart your console window
- cd ~
- wget -c http://ftpmirror.gnu.org/libmicrohttpd/libmicrohttpd-0.9.50.tar.gz
- tar -zxvf libmicrohttpd-0.9.50.tar.gz
- cd libmicrohttpd-0.9.50/
- CFLAGS='-Os -s' ./configure --disable-doc --disable-examples --disable-messages --enable-https=no --disable-bauth --disable-dauth --disable-curl
- :: You will see a report like:
- :: ...
- :: configure: libmicrohttpd 0.9.50 Configuration Summary:
- :: Cross-compiling: no
- :: Operating System: mingw32
- :: Threading lib: w32
- :: libcurl (testing): no, many unit tests will not run
- :: Target directory: /usr/local
- :: Messages: no
- :: Basic auth.: no
- :: Digest auth.: no
- :: Postproc: yes
- :: HTTPS support: no (disabled)
- :: poll support: no
- :: epoll support: no
- :: build docs: no
- :: build examples: no
- make
- make install-strip
- :: Finally, get compiled shared library at "C:\msys32\usr\local\bin\" and enjoy it! :-)
- :: If you want to rebuild MHD, do:
- ::
- :: $ make clean
- :: $ CFLAGS='-Os -s' ./configure --disable-doc --disable-examples --disable-messages --enable-https=no --disable-bauth --disable-dauth --disable-curl
- :: $ make -j8
- :: $ make install-strip
Advertisement
Add Comment
Please, Sign In to add comment