Cisco-Talos / clamav

ClamAV - Documentation is here: https://docs.clamav.net
https://www.clamav.net/
GNU General Public License v2.0
4.43k stars 706 forks source link

Windows: fix build issue with newer version of Rust #1306

Closed micahsnyder closed 4 months ago

micahsnyder commented 4 months ago

Newer versions of Rust appear to include '/defaultlib:msvcrt' in the list of native static libs when you run '--print=native-static-libs'.

MSVC doesn't know what to do with this when passed as a linker dependency.

Since msvcrt.lib is ALSO listed, the solution seems to be to strip this item from the list.