[Rubygems-developers] gemspec extensions attribute

Trans transfire at gmail.com
Mon Nov 5 22:55:15 EST 2007


One last question (hopefully). In the gemspec it says:

  extensions

  Type: Array; Optional
  Description

  The paths to extconf.rb-style files used to compile extensions.
  Usage

    spec.extensions << 'ext/rmagic/extconf.rb'

  Notes

  These files will be run when the gem is installed, causing the C (or
whatever) code to be compiled on the user's machine.


But does this have to be extconf.rb scripts? Or can it be any script
in the package? And does gems run 'make' on its own, or does the
extconf.rb (or other) scripts need to do that?

Thanks,
T.


More information about the Rubygems-developers mailing list