From: Ryan Davis Date: 2002-09-13T02:40:47+09:00 Subject: RubyInline and CrossPlatform concerns (was: Windows XP : RubyInline 1.0.4 Released!) On Wednesday, Sep 11, 2002, at 23:19 US/Pacific, Park Heesob wrote: > tmpdir = ENV['TMP'] + "/.ruby_inline" I've left /tmp in favor of the home directory. Is there something like ENV['HOME'] on win? Further, this change of yours doesn't reflect the option of using ENV['INLINEDIR']. Any reason why? > # Compiling > cmd = "#{cc} -o #{so_name} #{src_name} #{libs}".gsub('/','\\') + > " -link /INCREMENTAL:no /EXPORT:Init_#{mod_name}" > `#{cmd}` > end Why didn't rbconfig add the -link line that you have above? I'm not willing or able to accept this change as-is, because that _should_ be part of your rbconfig setup, if it isn't, then that wasn't the way ruby was built and it is suspect. This change makes this section no longer platform independent. This is further tangled by the gsub, as if the -link section did come from rbconfig, then the gsub would mess it up. Finally, the ".gsub('/', '\\')" is also not platform independent. I'm frustrated that it's even necessary. As I understand it, perl just automatically changes things like that (at least on open and other obvious file references). Python has the very useful 'os' module. Is this something that we need? How should I deal with this? Suggestions?