[dpdk-dev] MinGW guide

Tal Shnaiderman talshn at mellanox.com
Mon Jun 15 11:25:07 CEST 2020


> Subject: Re: MinGW guide
> 
> On Sat, 13 Jun 2020 10:55:14 +0200
> Thomas Monjalon <thomas at monjalon.net> wrote:

[snip]

> > Then when installing mingw-w64-install.exe, a choice must be done
> > between threads POSIX or Win32.
> > If I understand well, POSIX must be chosen?
> 
> Yes. DPDK config/meson.build now links with pthread if linker is not link.exe.
> 

Where do we actually use pthread in Windows? 

> Note that maybe this can be relaxed (test needed!), i. e. link with pthread if
> it is found, otherwise use shim. Benefit, if this works: no runtime
> dependency on "libwinpthread-1.dll" for Windows.

I was sure, since we create the threads with Win32 API (CreateThread), the correct option is Win32.
My mingw-w64 is installed with that option and I didn't see issues with it.

> 
> --
> Dmitry Kozlyuk


More information about the dev mailing list