Hi,

At Fri, 25 Jun 2004 10:28:06 +0900,
Daniel Berger wrote in [ruby-talk:104505]:
> However, everything works fine if I install expat in c:\expat.  So, it
> looks like the space in the directory name is causing a problem.  Is
> this a problem with mkmf.rb or is it a bug in the Windows linker?

It's a known restriction, but... it may be nasty.  Can you try
this patch?


* lib/mkmf.rb (libpathflag, dir_config): quote directory names if
  necessary.  [ruby-talk:104505]


Index: lib/mkmf.rb =================================================================== RCS file: /pub/cvs/ruby/src/ruby/lib/mkmf.rb,v retrieving revision 1.162.2.13 diff -U2 -p -d -r1.162.2.13 mkmf.rb --- lib/mkmf.rb 20 May 2004 08:02:11 -0000 1.162.2.13 +++ lib/mkmf.rb 25 Jun 2004 02:30:25 -0000 @@ -251,5 +251,5 @@ end def libpathflag(libpath=$LIBPATH) libpath.map{|x| - (x == "$(topdir)" ? LIBPATHFLAG : LIBPATHFLAG+RPATHFLAG) % x + (x == "$(topdir)" ? LIBPATHFLAG : LIBPATHFLAG+RPATHFLAG) % x.quote }.join end @@ -662,5 +662,5 @@ def dir_config(target, idefault=nil, lde idirs -= Shellwords.shellwords($CPPFLAGS) unless idirs.empty? - $CPPFLAGS = (idirs << $CPPFLAGS).join(" ") + $CPPFLAGS = (idirs << $CPPFLAGS).quote.join(" ") end end
-- Nobu Nakada