-
Notifications
You must be signed in to change notification settings - Fork 13.9k
Open
Labels
A-linkageArea: linking into static, shared libraries and binariesArea: linking into static, shared libraries and binariesC-discussionCategory: Discussion or questions that doesn't represent real issues.Category: Discussion or questions that doesn't represent real issues.O-windowsOperating system: WindowsOperating system: WindowsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
Usually libraries and their import lib on Windows are named following those conventions:
- MSVC has
foo.dllandfoo.lib - GCC has
libfoo.dllandlibfoo.dll.a
However:
- With rustc and GCC linker (e.g. when cross compiling for Windows) I'm expecting to be following GCC convention, and do
rustc ... -o libfoo.dllto getlibfoo.dllandlibfoo.dll.abut instead of producesliblibfoo.dll.a(notice the repetition of the prefix). - With rustc and MSVC linker I'm expecting that
rustc ... -o foo.dllwould producefoo.dllandfoo.libbut instead of producesfoo.dll.lib.
Is that inconsistency intentional? Especially the lib prefix repetition in the import lib is problematic, that means we can't really build libfoo.dll without having an import library with a bad naming. Unless there is something I missed?
Metadata
Metadata
Assignees
Labels
A-linkageArea: linking into static, shared libraries and binariesArea: linking into static, shared libraries and binariesC-discussionCategory: Discussion or questions that doesn't represent real issues.Category: Discussion or questions that doesn't represent real issues.O-windowsOperating system: WindowsOperating system: WindowsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.