diff options
| author | Yuta Saito <kateinoigakukun@gmail.com> | 2022-12-23 13:58:45 +0900 |
|---|---|---|
| committer | Yuta Saito <kateinoigakukun@gmail.com> | 2022-12-23 17:45:20 +0900 |
| commit | c5eefb7f37db2865891298dd1a1e60dff09560ad (patch) | |
| tree | 37251b4f3bf04c02193b4b17f1aed121cb435b79 /include/ruby/ruby.h | |
| parent | 9c1f03a38a2650a10c24433663eaf46e8dcfab59 (diff) | |
darwin: resolve rb symbols from ext by `-flat_namespace` to see libruby transitively
This repairs the assumption, which many fat-gem maintainer expect, "An
extension built with --disable-shared Ruby is loadable from
--enable-shared Ruby".
By default all references resolved to a dynamic library use "two-level
namespace", which record the library name and symbol name for each
resolution entry. On the other hand, `-flat_namespace` discards the
library name information and resolves symbols "flatly".
This behavior is useful for us to ignore which image (`ruby`
executable or `libruby.dylib`) provides rb symbols at runtime.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/7008
Diffstat (limited to 'include/ruby/ruby.h')
0 files changed, 0 insertions, 0 deletions
