After your hints now I have ~90KB for 32 bits and ~86KB for 64 bits.

My commands was (I don't need HTTP *auth because I use JWT auth):

$ 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

And got the compiled file on `C:\msys32\usr\local\bin\libmicrohttpd-12.dll`.

I don't know why MHD calls the `libwinpthread-1.dll` lib even without use
the `MHD_USE_THREAD_PER_CONNECTION` flag, but it isn't problem, I can
distribute the two library.

I believe the is time to send the updated Windows binaries to the MHD home
page.

Thanks a lot Evg! :-)

(I'm indicating MHD in many lists that I participate :-) )

On Tue, Dec 8, 2015 at 6:19 PM, Evgeny Grin <[email protected]> wrote:

> I'd recommend to use  --disable-bauth --disable-dauth only with static lib
> as produced .dll will not be binary compatible with default mhd lib so add
> --disable-share --enable-static.
> To speedup building use 'make -j8' where '8' is number of your CPU cores.
> To remove debug and other unwanted information use "make install-string"
> or "strip lib-with-path.a"
> To build really small lib use CFLAGS='-Os -s', for example
> CFLAGS='-Os -s' ../libmicrohttpd/configure  --disable-shared
> --enable-static --disable-doc --disable-examples
> After stripping x64 binary with HTTPS support and other option is only 68
> Kib.
>
> Don't forget to run "make clean" before rebuilding with new options or
> flags.
>
> --
> Best Wishes,
> Evgeny Grin
>

-- 
Silvio Clécio

Reply via email to