-
Notifications
You must be signed in to change notification settings - Fork 14k
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-cygwinTarget: *-pc-cygwinTarget: *-pc-cygwinO-windows-gnuToolchain: GNU, Operating system: WindowsToolchain: GNU, Operating 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
Currently, despite considered a Unix, Cygwin inherits Windows' lack of lib prefix for cdylibs:
$ echo | rustc --crate-type cdylib - # using rustc for simplicity, but cargo projects behave the same
$ ls
librust_out.dll.a rust_out.dllWhereas all other Unix targets produce lib + name + .so / .dylib. This makes porting applications more hassle than it needs to be IMO.
I think Windows GNU targets should also behave the same, but I imagine that is going to be a lot more breakage, potentially more than it's worth, so I'll limit the request to Cygwin, but opinions welcome.
FWIW, CMake also produces libraries with the lib prefix.
Meta
$ rustc --version --verbose
rustc 1.91.0 (f8297e351 2025-10-28) (Rev4, Built by MSYS2 project)
binary: rustc
commit-hash: f8297e351a40c1439a467bbbb6879088047f50b3
commit-date: 2025-10-28
host: x86_64-pc-cygwin
release: 1.91.0
LLVM version: 21.1.1(backtrace N/A)
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-cygwinTarget: *-pc-cygwinTarget: *-pc-cygwinO-windows-gnuToolchain: GNU, Operating system: WindowsToolchain: GNU, Operating 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.