kwilczynski / ruby-magic

Simple interface to libmagic for Ruby Programming Language
Apache License 2.0
27 stars 8 forks source link

Fix compilation when shared libraries not enabled with Ruby interpreter #12

Closed stanhu closed 3 years ago

stanhu commented 3 years ago

The linker flag -Wl,--no-undefined was causing ruby-magic compilation to fail with undefined refrences to Ruby methods (e.g. rb_warn). This enforcement prevented ruby-magic from being compiled with a Ruby interpreter that did not have --enabled-shared set up by default.

Closes #6