Should allow installing on OS X without specifying --with-magic-lib= and --with-magic-include=.
I have two Macs. On one of them the extension installs fine without the need to supply any config arguments. On the other I have to tell it about /usr/local. Both have same ruby version, both have the same Homebrew packages installed, libmagic is installed on both of them. The only difference I can tell is that one has Developer Command Line Tools (extension installs fine) and the other has Xcode instead (extension install fails).
With this change the mkmf succeeds on both computers. Not sure if there are any negative side effects.
Should allow installing on OS X without specifying
--with-magic-lib=
and--with-magic-include=
.I have two Macs. On one of them the extension installs fine without the need to supply any config arguments. On the other I have to tell it about
/usr/local
. Both have same ruby version, both have the same Homebrew packages installed, libmagic is installed on both of them. The only difference I can tell is that one has Developer Command Line Tools (extension installs fine) and the other has Xcode instead (extension install fails).With this change the
mkmf
succeeds on both computers. Not sure if there are any negative side effects.