build: fix MS linker flag with meson 0.54
authorNick Connolly <nick.connolly@mayadata.io>
Sat, 31 Oct 2020 06:44:55 +0000 (06:44 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 13 Nov 2020 14:13:16 +0000 (15:13 +0100)
commit52a7cb0ad03a032ff33766cb1dc8553c17634ca6
tree48ccbe40726a13c6eca3043be02111f764af18cd
parent5c7d86948764f9cec832bf3c618e0cceb06ac512
build: fix MS linker flag with meson 0.54

Meson versions >= 0.54.0 include support for handling /implib
with msvc link. Specifying it explicitly causes failures when
linking against the dll. Tested using Link 14.27.29112.0 and
Clang 11.0.0.

There were a number of changes to the way that import libraries
are handled between 0.47.1 and 0.54.0. Only make the change
for >= 0.54.0, leaving the behaviour unchanged for earlier
versions.

Fixes: 77cca7ccec13 ("build: fix drivers library path on Windows")
Cc: stable@dpdk.org
Signed-off-by: Nick Connolly <nick.connolly@mayadata.io>
Tested-by: Ranjit Menon <ranjit.menon@intel.com>
Acked-by: Ranjit Menon <ranjit.menon@intel.com>
Acked-by: Khoa To <khot@microsoft.com>
drivers/meson.build
lib/meson.build