I’d like to have lib/sndfile.rb require the shared library. In the past
I’ve done this with require ‘foo.so’, which worked great on linux but it
occurs to me that it’s not very cross-platform. (On my iBook for example
the output is sndfile.bundle)
Is there an elegant way to require the shared library and not the ruby
lib? Or do I just need to name my shared library something else? (or
vice versa) I’d like people to just be able to do
At Tue, 15 Nov 2005 04:52:16 +0900,
Hans F. wrote in [ruby-talk:165742]:
I’d like to have lib/sndfile.rb require the shared library. In the past
I’ve done this with require ‘foo.so’, which worked great on linux but it
occurs to me that it’s not very cross-platform. (On my iBook for example
the output is sndfile.bundle)
“.so” is handled specically as the platform dependent suffix,
i.e., “.bundle” on MacOSX.