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 <dmitry.kozliuk@gmail.com> Acked-by: Pallavi Kadam <pallavi.kadam@intel.com>
This commit is contained in:
parent
2e40fdc2d3
commit
9d8feca542
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user