Building unbound on MXE (short version)

W.C.A. Wijngaards wouter at nlnetlabs.nl
Tue Jul 5 07:25:43 UTC 2016


Hi Henri,

I made slightly different fixes for these issues:
if echo $host $target | grep mingw32 >/dev/null; then on_mingw="yes"
And the sldns_wire2str stuff is fixed with extra link arguments in
Makefile.in for anchor-update.exe.

That should make the build work also for other ports than MXE.

Best regards, Wouter

On 04/07/16 23:11, Henri Manson via Unbound-users wrote:
> After changing:
> 
> manson at manson-VirtualBox:~/unbound$ svn diff configure libunbound/ubsyms.def
> Index: configure
> ===================================================================
> --- configure   (revision 3802)
> +++ configure   (working copy)
> @@ -4055,7 +4055,7 @@
>  # are we on MinGW?
>  if uname -s 2>&1 | grep MINGW32 >/dev/null; then on_mingw="yes"
>  else
> -       if echo $target | grep mingw32 >/dev/null; then on_mingw="yes"
> +       if echo $host | grep mingw32 >/dev/null; then on_mingw="yes"
>         else on_mingw="no"; fi
>  fi
> 
> Index: libunbound/ubsyms.def
> ===================================================================
> --- libunbound/ubsyms.def       (revision 3802)
> +++ libunbound/ubsyms.def       (working copy)
> @@ -33,3 +33,5 @@
>  ub_strerror
>  ub_version
>  ub_wait
> +sldns_wire2str_rdata_buf
> +sldns_wire2str_type_buf
> 
> and invoking
> 
> ./configure --host=x86_64-w64-mingw32.shared
> --build=x86_64-unknown-linux-gnu
> --prefix=/home/manson/nlnet/mxe/usr/x86_64-w64-mingw32.shared
> --disable-flto --enable-shared --without-pthreads
> --with-libexpat=/home/manson/nlnet/mxe/usr/x86_64-w64-mingw32.shared
> LIBS=-lssl -L/home/manson/nlnet/mxe/usr/x86_64-w64-mingw32.shared/lib
> -lcrypto 
> 
> unbound builds on MXE 64-bits shared
> 
> I think it's best to apply the fixes upstream before creating an
> official MXE .mk package
> 
> Henri


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.nlnetlabs.nl/pipermail/unbound-users/attachments/20160705/6d45dc64/attachment.bin>


More information about the Unbound-users mailing list