[dpdk-dev] [PATCH v7 1/8] eal: eal stub to add windows support
Bruce Richardson
bruce.richardson at intel.com
Mon Apr 1 18:17:25 CEST 2019
On Thu, Mar 28, 2019 at 04:24:44PM -0700, Anand Rawat wrote:
> Added initial stub source files for windows support
> and only the required meson changes for windows.
>
> Signed-off-by: Pallavi Kadam <pallavi.kadam at intel.com>
> Signed-off-by: Anand Rawat <anand.rawat at intel.com>
> Reviewed-by: Jeff Shaw <jeffrey.b.shaw at intel.com>
> Reviewed-by: Ranjit Menon <ranjit.menon at intel.com>
> ---
> config/meson.build | 23 ++++++++++++------
> config/x86/meson.build | 14 ++++++-----
> lib/librte_eal/meson.build | 6 ++++-
> lib/librte_eal/windows/eal/eal.c | 14 +++++++++++
> lib/librte_eal/windows/eal/eal_debug.c | 15 ++++++++++++
> lib/librte_eal/windows/eal/eal_lcore.c | 32 +++++++++++++++++++++++++
> lib/librte_eal/windows/eal/eal_thread.c | 18 ++++++++++++++
> lib/librte_eal/windows/eal/meson.build | 10 ++++++++
> 8 files changed, 118 insertions(+), 14 deletions(-)
> create mode 100644 lib/librte_eal/windows/eal/eal.c
> create mode 100644 lib/librte_eal/windows/eal/eal_debug.c
> create mode 100644 lib/librte_eal/windows/eal/eal_lcore.c
> create mode 100644 lib/librte_eal/windows/eal/eal_thread.c
> create mode 100644 lib/librte_eal/windows/eal/meson.build
>
> diff --git a/config/meson.build b/config/meson.build
> index 30a7261a5..4bd73b1e9 100644
> --- a/config/meson.build
> +++ b/config/meson.build
> @@ -1,5 +1,5 @@
> # SPDX-License-Identifier: BSD-3-Clause
> -# Copyright(c) 2017 Intel Corporation
> +# Copyright(c) 2017-2019 Intel Corporation
>
> # set the major version, which might be used by drivers and libraries
> # depending on the configuration options
> @@ -80,18 +80,27 @@ dpdk_extra_ldflags += '-Wl,--no-as-needed'
> add_project_link_arguments('-pthread', language: 'c')
> dpdk_extra_ldflags += '-pthread'
>
> -# some libs depend on maths lib
> -add_project_link_arguments('-lm', language: 'c')
> -dpdk_extra_ldflags += '-lm'
> +# on some OS, maths functions are in a separate library
> +if cc.find_library('lm', required : false).found()
The library is "libm", not "liblm" so this breaks the linux builds as there
is not found an "lm" library. Instead use "cc.find_library('m',..."
/Bruce
More information about the dev
mailing list