Maintained by: NLnet Labs

Building unbound on MXE (short version)

Henri Manson
Tue Jul 12 10:57:58 CEST 2016


Hello Wouter,

Can you make an unbound release (unbound-X.Y.Z.tar.gz) containing these
changes? Then I can try to make a MXE project out of it

Best regards, Henri

On Tue, Jul 5, 2016 at 9:25 AM, W.C.A. Wijngaards via Unbound-users <
unbound-users at unbound.net> wrote:

> 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 --------------
An HTML attachment was scrubbed...
URL: <https://unbound.nlnetlabs.nl/pipermail/unbound-users/attachments/20160712/ccdcf212/attachment.html>