[DOC] Update description about shared library suffix

Loading an extension library with ".dll" suffix on Windows was very
old behavior, and the suffix must be ".so" since 2004.  See commits
removing DLEXT2 181a3a2af5df88d145b73a060d51fe437c8c4ad4 and
b76ad15ed0da636161de0243c547ee1e6fc95681.

Instead, use macOS as an example, which uses ".bundle".
This commit is contained in:
Nobuyoshi Nakada 2023-12-12 09:39:13 +09:00
parent 4eca329d29
commit 38348502b5
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465

2
load.c
View File

@ -963,7 +963,7 @@ static VALUE rb_require_string_internal(VALUE fname, bool resurrect);
* found. If the file named cannot be found, a LoadError will be raised.
*
* For Ruby extensions the filename given may use ".so" or ".o". For example,
* on Windows the socket extension is "socket.dll" and
* on macOS the socket extension is "socket.bundle" and
* <code>require 'socket.so'</code> will load the socket extension.
*
* The absolute path of the loaded file is added to