blackwinter / ruby-filemagic

Ruby bindings to the magic(4) library, revised.
https://blackwinter.github.iom/ruby-filemagic
146 stars 34 forks source link

List default lib and header directories. #18

Closed amw closed 8 years ago

amw commented 8 years ago

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.

blackwinter commented 8 years ago

Thanks! Merged and released as 0.7.1.

amw commented 8 years ago

Thanks!