Commit 7a5adcd
committed
Add a
- Users on MacOS that installed Ruby through different installer such
as `ruby-install` will have their Ruby built with this
`configure_args` `--with-libyaml-dir=/opt/homebrew/opt/libyaml`.
This commit adds a `dir_config("libyaml")` so that the flag is taken
in consideration. Otherwise the header and function can't be found
leading to a compilation error.
I'm not super familiar with C extensions, but from reading the doc
it seems that `dir_config` just "pushes" to the list of directories
ruby will search for libraries and include files. It shouldn't
affect users that are not on MacOS.dir_config for users on MacOS1 parent 1c11dc3 commit 7a5adcd
2 files changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| 54 | + | |
| 55 | + | |
53 | 56 | | |
54 | 57 | | |
55 | 58 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
0 commit comments