From: nobuyoshi nakada [mailto:nobuyoshi.nakada@ge.com]
Sent: Wednesday, October 26, 2005 1:24 AM
To: ruby-talk ML
Subject: Re: mkmf, linking against a specific DLL on windows
<snip>
> Cool, but you're going to have to make a check to see if dumpbin
> exists and use link -dump instead if it doesn't.Like this?
if path = ENV["PATH"]
path = path.split(File::PATH_SEPARATOR)
else
path = %w[.]
end
dumpbin = "dumpbin.exe"
unless path.find {|dir| File.join(dir, dumpbin)}
dumpbin = "link.exe -dump"
endIO.foreach("|#{dumpbin} -symbols -exports " + objs.join(' ')) do |l|
...
end--
Nobu Nakada
That should work, thanks.
Can you confirm if your lib.exe has problems with spaces in path names?
Thanks,
Dan
···
-----Original Message-----