[dpdk-stable] [dpdk-dev] [PATCH] build: fix using ELF-only linker flags with COFF

Ranjit Menon ranjit.menon at intel.com
Wed Jan 13 21:27:18 CET 2021


On 1/11/2021 4:36 PM, Dmitry Kozlyuk wrote:
> The --export-dynamic linker option is only applicable to ELF.
> On Windows, where COFF is used, it causes warnings:
>
>      x86_64-w64-mingw32-ld: warning: --export-dynamic is not supported
>      for PE+ targets, did you mean --export-all-symbols? (MinGW)
>
>      LINK : warning LNK4044: unrecognized option '/-export-dynamic';
>      ignored (clang)
>
> Don't add --export-dynamic on Windows anywhere.
>
> Fixes: b031e13d7f0d ("build: fix plugin load on static build")
> Cc: stable at dpdk.org
>
> Signed-off-by: Dmitry Kozlyuk <dmitry.kozliuk at gmail.com>
> ---
> Using TLS variables with DLLs is problematic on Windows for now,
> so not attempting to check or solve the issue with plugin load.
>
>   app/meson.build                   | 2 +-
>   buildtools/pkg-config/meson.build | 6 +++++-
>   examples/meson.build              | 2 +-
>   3 files changed, 7 insertions(+), 3 deletions(-)

Acked-by: Ranjit Menon <ranjit.menon at intel.com>




More information about the stable mailing list