Hi,

At Tue, 18 May 2004 04:33:52 +0900,
Rudi Cilibrasi wrote in [ruby-talk:100551]:
> I would like to use extconf.rb to generate the Makefile in my ext/
> directory, but there are problems.  For instance, the generated Makefile
> does not support the check: target, and so when somebody types
> make check
> at the top of my source tree it fails when recursively doing make check's
> in each of the subdirs because there is no such target in the ext/ directory.

Add check: target to ext/depend file.

> Another problem is how to pass on options like
> ../configure --prefix $HOME/mystuff/installpath
> What is the "accepted" way to handle installation-directory overrides like
> this using mkmf.rb?  What about an override of the CC for cross-compilation?

An extension library's installation directory is fixed as
supplied by rbconfig.rb, and CC must match with ruby's one.
You need proper rbconfig.rb to cross-compile.

-- 
Nobu Nakada