Skip to content

Commit

Permalink
Added tips for giving blocks to MRuby::Build#gem
Browse files Browse the repository at this point in the history
  • Loading branch information
dearblue committed Jan 5, 2023
1 parent 9797138 commit 9016acf
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions doc/guides/mrbgems.md
Expand Up @@ -77,6 +77,21 @@ resolve version conflicts. If the version as specified in the gem's
rakefile is incompatible with a dependency, your build will still
fail.

### Tweak the gem in your build configuration file

You can give blocks in the `conf.gem` call to make adjustments for
environments where the original gem does not expect them:

```ruby
conf.gem core: "mruby-bin-mirb" do |g|
# For cross build to NetBSD
g.linker.libraries = %w(edit termcap)
end
```

However, it should be used with caution, as it may deviate from the intent
of the gem's author.

## GemBox

There are instances when you wish to add a collection of mrbgems into mruby at
Expand Down

0 comments on commit 9016acf

Please sign in to comment.