Skip to content

Commit 72bda0f

Browse files
committed
[Bug #21255] Win32: Do not export __declspec(selectany) symbols
``` x64-vcruntime140-ruby350.def : error LNK2001: unresolved external symbol Avx2WmemEnabledWeakValue ```
1 parent e1adb6c commit 72bda0f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

win32/mkexports.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ def each_export(objs)
110110
case filetype
111111
when /OBJECT/, /LIBRARY/
112112
l.chomp!
113+
next if (/^ .*\(pick any\)$/ =~ l)...true
113114
next if /^[[:xdigit:]]+ 0+ UNDEF / =~ l
114115
next unless /External/ =~ l
115116
next if /(?:_local_stdio_printf_options|v(f|sn?)printf(_s)?_l)\Z/ =~ l

0 commit comments

Comments
 (0)