[Bug #21255] Win32: Do not export __declspec(selectany) symbols

```
x64-vcruntime140-ruby350.def : error LNK2001: unresolved external symbol Avx2WmemEnabledWeakValue
```
This commit is contained in:
Nobuyoshi Nakada 2025-05-26 20:37:14 +09:00
parent e1adb6cb15
commit 72bda0f981
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465

View File

@ -110,6 +110,7 @@ class Exports::Mswin < Exports
case filetype
when /OBJECT/, /LIBRARY/
l.chomp!
next if (/^ .*\(pick any\)$/ =~ l)...true
next if /^[[:xdigit:]]+ 0+ UNDEF / =~ l
next unless /External/ =~ l
next if /(?:_local_stdio_printf_options|v(f|sn?)printf(_s)?_l)\Z/ =~ l