Here's RMagick's Makefile.in. This will probably make it clearer than my
prose description. (The ./configure script also accepts a number of
options, like --with-std-ruby, that it passes on to install.rb via
@RUBY_CONFIG_OPTS@.)

# Path to ruby interpreter
RUBY=@RUBY@

# Any extra options from configure script to pass to 'install.rb config'
RUBY_CONFIG_OPTS=@RUBY_CONFIG_OPTS@

i guess i'm thinking more along the lines of smallish packages, and would like
avoid having site_ruby/1.8/i686/foobar.so depend on
/usr/local/lib/libfoobar.so.... (i just had a bad experience supporting some
software that required LD_RUN_PATH to manage dependancies). it would be ideal
if

foobar.so

was the result of compiling

foobar.c # original C source
_foobar.c # ruby binding to it

obviously this wouldn't apply to packages likely to be updated independently
(like ImageMagick) but might be o.k. for smallish things like cdb, lockfile
utils, etc.

Guest

Hi,

At Wed, 21 Apr 2004 23:04:11 +0900,
Ara.T.Howard wrote in [ruby-talk:97854]:
> i guess i'm thinking more along the lines of smallish packages, and would like
> avoid having site_ruby/1.8/i686/foobar.so depend on
> /usr/local/lib/libfoobar.so.... (i just had a bad experience supporting some
> software that required LD_RUN_PATH to manage dependancies). it would be ideal
> if
>
> foobar.so
>
> was the result of compiling
>
> foobar.c # original C source
> _foobar.c # ruby binding to it
>
> obviously this wouldn't apply to packages likely to be updated independently
> (like ImageMagick) but might be o.k. for smallish things like cdb, lockfile
> utils, etc.

Though, makefile created by configure and one created by
extconf.rb, could conflict. I think you would have to separate
the directories.

Share This Page

Welcome to The Coding Forums!

Welcome to the Coding Forums, the place to chat about anything related to programming and coding languages.

Please join our friendly community by clicking the button below - it only takes a few seconds and is totally free. You'll be able to ask questions about coding or chat with the community and help others.
Sign up now!