summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2025-05-26 20:37:14 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2025-06-25 13:28:38 +0900
commit051e5f54ccaef1721796252af259530b82c44211 (patch)
tree56a9d583aad1bcd49b696db6a13d3cc960daaba2
parentd946d65cea2468086932bb95d77ac2f93b9f67b9 (diff)
[Bug #21255] Win32: Do not export `__declspec(selectany)` symbols
``` x64-vcruntime140-ruby350.def : error LNK2001: unresolved external symbol Avx2WmemEnabledWeakValue ```
-rwxr-xr-xwin32/mkexports.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/win32/mkexports.rb b/win32/mkexports.rb
index 40f055dee7..29db1a71e6 100755
--- a/win32/mkexports.rb
+++ b/win32/mkexports.rb
@@ -114,6 +114,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