mattn / mruby-onig-regexp

mrbgem of 鬼雲's Regular Expression
31 stars 36 forks source link

No way to explicitly use the included libonig instead of what is installed on the host system #110

Open suetanvil opened 1 year ago

suetanvil commented 1 year ago

My build machine has libonig installed for reasons unrelated to mruby. When I build my project, it links against that version instead of the one that comes with the gem. Since the installed libonig is a shared library and the project is intended to produce a distributable binary, this is a problem.

I would like a way to force the gem to always use its own version of the library even if there's a version present on the system.

I've coded the change and will submit a pull request.