Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- :: Script for building libmicrohttpd on Windows (no HTTPS, messages, auth etc., just HTTP 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
- :: 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 --disable-doc --disable-examples --disable-messages --enable-https=no --disable-bauth --disable-dauth --disable-curl 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): 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
- :: 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:
- ::
- :: make clean
- :: ./configure --disable-doc --disable-examples --disable-messages --enable-https=no --disable-bauth --disable-dauth --disable-curl CFLAGS='-Os -s'
- :: make -j $NUMBER_OF_PROCESSORS
- :: make install-strip
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement