Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- :: Script for building libmicrohttpd on Windows (HTTPS, messages, auth etc., full HTTP(S) server)
- ::
- :: Authors: silvioprog and karlson2k
- ::
- :: Topic: http://lists.gnu.org/archive/html/libmicrohttpd/2016-06/msg00023.html
- :: Get and install MinGW-w64: http://downloads.sourceforge.net/project/msys2/Base/i686/msys2-i686-20150916.exe
- :: Open the Command Prompt:
- cd C:\msys32 & mingw32_shell.bat
- :: Installing tools:
- pacman -S mingw-w64-i686-gcc make wget tar mingw-w64-i686-curl mingw-w64-i686-libgcrypt mingw-w64-i686-gnutls
- :: Downloading MHD and upacking MHD ...
- cd ~ && wget -c http://ftpmirror.gnu.org/libmicrohttpd/libmicrohttpd-0.9.50.tar.gz && tar -zxvf libmicrohttpd-0.9.50.tar.gz
- :: Configuring MHD build:
- mkdir build && cd build && ../libmicrohttpd-0.9.50/configure CFLAGS='-Os -s'
- :: You will see a report like:
- :: ...
- :: configure: libmicrohttpd 0.9.50 Configuration Summary:
- :: Cross-compiling: no
- :: Operating System: mingw32
- :: Threading lib: w32
- :: libcurl (testing): yes
- :: Target directory: /usr/local
- :: Messages: yes
- :: Basic auth.: yes
- :: Digest auth.: yes
- :: Postproc: yes
- :: HTTPS support: yes (using libgnutls and libgcrypt)
- :: poll support: no
- :: epoll support: no
- :: build docs: yes
- :: build examples: yes
- ::
- :: configure: HTTPS subsystem configuration:
- :: License : LGPL only
- :: Making and installing MHD:
- 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
- :: ./configure CFLAGS='-Os -s'
- :: make -j $NUMBER_OF_PROCESSORS
- :: make install-strip
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement