diff options
author | Nobuyoshi Nakada <[email protected]> | 2025-05-26 20:37:14 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2025-05-27 15:26:25 +0900 |
commit | 72bda0f981c7136f50254c433bbfb97a953f634b (patch) | |
tree | c897a0de9f338c00837f711aa431dfd574c477ec | |
parent | e1adb6cb15129a54df0c55a337e98b92b2a55e3f (diff) |
[Bug #21255] Win32: Do not export `__declspec(selectany)` symbols
```
x64-vcruntime140-ruby350.def : error LNK2001: unresolved external symbol Avx2WmemEnabledWeakValue
```
-rwxr-xr-x | win32/mkexports.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/win32/mkexports.rb b/win32/mkexports.rb index 1a37c7ee91..389b49def8 100755 --- a/win32/mkexports.rb +++ b/win32/mkexports.rb @@ -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 |