From: Dmitry Kozlyuk Date: Sat, 20 Jun 2020 22:35:42 +0000 (+0300) Subject: config: never link with pthread on Windows X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=9d8feca54205db3866ee8598b8be208c75c0c3b9;p=dpdk.git 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 --- 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