From 9d8feca54205db3866ee8598b8be208c75c0c3b9 Mon Sep 17 00:00:00 2001 From: Dmitry Kozlyuk Date: Sun, 21 Jun 2020 01:35:42 +0300 Subject: [PATCH] config: never link with pthread on Windows Even if pthread is provided by the toolchain, it is not needed for DPDK on Windows, because internal shim is used. As a side-effect, this enables cross-build with MinGW configured with non-POSIX thread library, e.g. mcfgthread, which is the default on some distributions. Signed-off-by: Dmitry Kozlyuk Acked-by: Pallavi Kadam --- config/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/meson.build b/config/meson.build index d3f05f8781..bb64c3bd43 100644 --- a/config/meson.build +++ b/config/meson.build @@ -117,7 +117,7 @@ if not is_windows endif # use pthreads if available for the platform -if not is_ms_linker +if not is_windows add_project_link_arguments('-pthread', language: 'c') dpdk_extra_ldflags += '-pthread' endif -- 2.20.1