-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use lib prefix for native library names for consistency #39717
Conversation
Tagging subscribers to this area: @safern, @ViktorHofer |
@@ -6,6 +6,6 @@ internal static partial class Interop | |||
internal static partial class Libraries | |||
{ | |||
internal const string Odbc32 = "libodbc.so.2"; | |||
internal const string MsQuic = "msquic"; | |||
internal const string MsQuic = "libmsquic.so"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have fixed up msquic just for consistency
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As we didn't see any failures since the rename, does that mean that this is dead code?
The loader has fallback that tries multiple library names with different prefixes / suffixes. It is what made it work. |
It was discovered in CoreRT dotnet/corert#8241 since the native AOT is more sensitive to details like this. |
Should/can we add some validation for the names of native libraries we produce on Unix to make sure they all have |
I would expect that codereviews would be good enough to catch wrong native library name if we add more of them. |
#33236 added lib prefix to the native libraries, but it was missed in number of places.