Forum: Ruby compile in static library with mkmf

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
unknown (Guest)
on 2006-03-27 08:29
(Received via mailing list)
I have the following directory structure.

~/pyastman/ruby/              #ruby build dir
~/pyastman/                     #code and library to wrap

The library is libast_man.a, which I want to link into my ruby
extension module at compile time.  I'm not sure if this can be done
with a static library.  It's not clear to me from the instructions.  I

require 'mkmf'

ruby extconf.rb --with-ast_man-lib=~/pyastman

It can't find the library.  I tried various permutations on the names
as well.  The next best thing would be to just tell it where the object
file is or even recompile the library.  But I couldn't figure out how
to do this with mkmf either.

This topic is locked and can not be replied to.