diff --git a/ext/zlib/extconf.rb b/ext/zlib/extconf.rb index 76cd34582e..13d0ee2052 100644 --- a/ext/zlib/extconf.rb +++ b/ext/zlib/extconf.rb @@ -46,7 +46,7 @@ else end m = File.read(m) zimplib = m[/^IMPLIB[ \t]*=[ \t]*(\S+)/, 1] - $LOCAL_LIBS << " " << zimplib + ($LOCAL_LIBS << " ./" << zimplib).strip! unless $nmake or /^TOP[ \t]/ =~ m m.gsub!(/win32\/zlib\.def/, '$(TOP)/\&') m.gsub!(/^(\t.*[ \t])(\S+\.rc)/, '\1-I$(