On Mon, Apr 15, 2024 at 7:13 PM Tyler Retzlaff
<roret...@linux.microsoft.com> wrote:
>
> MSVC is the only compiler that can produce usable shared libraries for
> DPDK on Windows because of the use of exported TLS variables.
>
> Disable building of shared libraries with LLVM and MinGW so that
> remaining __declspec macros needed for the functional libraries built by
> MSVC can be used without triggering errors in LLVM and MinGW builds.
>                                                                               
>                                                For Windows only install the 
> default_library type to avoid confusion.
> Windows builds cannot build both shared and static in a single pass so
> install only the functional variant
>
> MSVC does not guarantee any kind of compatibility for static libraries so
> they should not be packaged and instead they should be rebuilt along with
> the application using the same version of the compiler & linker.  Because
> of this we have chosen to build only one library type at a time instead of
> compiling twice to produce both types in a single pass.
>
> thanks Bruce for all the discussion/feedback!
>
> Tyler Retzlaff (2):
>   build: build only one library type on Windows
>   buildtools: when building static library use static deps
>
>  buildtools/chkincs/meson.build |  5 ++--
>  config/meson.build             | 24 +++++++++++++++
>  drivers/meson.build            | 59 ++++++++++++++++---------------------
>  lib/meson.build                | 67 
> ++++++++++++++++--------------------------
>  4 files changed, 78 insertions(+), 77 deletions(-)

Series applied, thanks.


-- 
David Marchand

Reply via email to