[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [libmicrohttpd] Build issue on MINGW

From: Christian Grothoff
Subject: Re: [libmicrohttpd] Build issue on MINGW
Date: Thu, 18 Oct 2018 17:34:32 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1

Hi Tim,

The issue is that in line, we have "noinst_" instead of
"lib_" because the code is far from complete and it must not yet be
installed. That causes the dlname='' issue you describe.

The best fix I can propose: I'm adding an option (--enable-experimental)
which disables building src/lib/ by default, so that users that don't
care about the experimental code don't get disrupted like this.

Happy hacking!


On 10/18/2018 04:45 PM, Tim Rühsen wrote:
> Hi,
> the build on MinGW fails in lib/src/ due to
>         @echo Creating $@ and libmicrohttpd2.exp by $(DLLTOOL)... && \
>         dll_name=`$(EGREP) -o dlname=\'.+\'` && \
> contains
>   dlname=''
> and thus the egrep (or grep -E) fails.
> I am on Debian unstable and use this sequence in a script:
> unset CC
> PREFIX=x86_64-w64-mingw32
> export PKG_CONFIG_PATH=$INSTALLDIR/lib/pkgconfig
> export CPPFLAGS="-I$INSTALLDIR/include"
> export LDFLAGS="-L$INSTALLDIR/lib"
> export CFLAGS="-O2 -Wall -Wno-format"
> git clone --recursive
> cd dlfcn-win32
> ./configure --prefix=$PREFIX --cc=$PREFIX-gcc
> make
> cp -p libdl.a ../$PREFIX/lib/
> cp -p dlfcn.h ../$PREFIX/include/
> cd ..
> git clone --recursive
> cd libmicrohttpd
> ./bootstrap
> ./configure --build=x86_64-pc-linux-gnu --host=$PREFIX
> --prefix=$INSTALLDIR --disable-doc --disable-examples --enable-shared
> make clean
> make -j$(nproc)
> cd ..
> Regards, Tim

Attachment: 0x939E6BE1E29FC3CC.asc
Description: application/pgp-keys

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]