> On Tue, Feb 12, 2019 at 11:47 PM Ben Pfaff <b...@ovn.org> wrote:
> >
> > On Tue, Feb 12, 2019 at 07:29:58AM +0100, Christian Ehrhardt wrote:
> > > DPDK 18.11 builds using the more modern meson build system no more
> > > provide the -ldpdk linker script. Instead it is expected to use
> > > pkgconfig for linker options as well.
> > >
> > > This change will set DPDK_LIB from pkg-config (if pkg-config was
> > > available) and since that already carries the whole-archive flags
> > > around the PMDs skips the further wrapping in more whole-archive if
> > > that is already part of DPDK_LIB.
> > >
> > > To work reliable in all environments this needs pkg-config 0.29.1.
> > > We want to be able to use PKG_CHECK_MODULES_STATIC which is not yet
> > > available in 0.24. Therefore update pkg.m4 to pkg-config 0.29.1.
> > >
> > > This should be backport-safe as these macro files are all versioned.
> > > autoconf is smart enough to check the version if you have it
> > > locally, and if the system's is higher, it will use that one instead.
> > >
> > > Acked-by: Luca Boccassi <bl...@debian.org>
> > > Acked-by: Aaron Conole <acon...@redhat.com>
> > > Signed-off-by: Christian Ehrhardt <christian.ehrha...@canonical.com>
> >
> > "Autoconf coding style" is basically an oxymoron--Autoconf looks ugly
> > almost no matter what--but this look unusual to me:
> >
> >         PKG_CHECK_MODULES_STATIC([DPDK], [libdpdk], [
> >             DPDK_INCLUDE="$DPDK_CFLAGS"
> >             DPDK_LIB="$DPDK_LIBS"
> >                                  ], [
> >             DPDK_INCLUDE="-I/usr/local/include/dpdk -I/usr/include/dpdk"
> >             DPDK_LIB="-ldpdk"
> >                                  ])
> >
> > I suggest the following:
> >
> >         PKG_CHECK_MODULES_STATIC([DPDK], [libdpdk], [
> >             DPDK_INCLUDE="$DPDK_CFLAGS"
> >             DPDK_LIB="$DPDK_LIBS"], [
> >             DPDK_INCLUDE="-I/usr/local/include/dpdk -I/usr/include/dpdk"
> >             DPDK_LIB="-ldpdk"])
> >
> > or
> >
> >         PKG_CHECK_MODULES_STATIC(
> >            [DPDK], [libdpdk],
> >            [DPDK_INCLUDE="$DPDK_CFLAGS"
> >             DPDK_LIB="$DPDK_LIBS"],
> >            [DPDK_INCLUDE="-I/usr/local/include/dpdk -I/usr/include/dpdk"
> >             DPDK_LIB="-ldpdk"])
> >
> > Beyond that, I will leave this patch to Ian.

@Ben, Thanks for your help with this, much appreciated.

> 
> Thanks Ben,
> @Ian it seems we have the acks of all participants - is it ok for you as
> well to push it now?
> Feel free to use either coding style on commit or if you want I can submit
> it as preferred - I can resend after you picked one :-)
> 

Sure, I just want to give it a test on my own system and will push later today 
all going well. I'll merge the first code style suggested by Ben on commit so 
no need for a respin.

Thanks
Ian
> 
> --
> Christian Ehrhardt
> Software Engineer, Ubuntu Server
> Canonical Ltd
_______________________________________________
dev mailing list
d...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to