diff options
author | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-05-27 07:49:06 +0000 |
---|---|---|
committer | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-05-27 07:49:06 +0000 |
commit | aee4253e707542c8c0bf72558849ff2f5375e4f6 (patch) | |
tree | c7264a7f475b306ab35c0b526db4b40ac164ad7f /lib | |
parent | d44aad57152e8640db9c97394cb8bade1db06d21 (diff) | |
download | ruby-aee4253e707542c8c0bf72558849ff2f5375e4f6.tar.gz |
* lib/mkmf.rb: use the semicolon as the path separator
in the environment of MSYS. fixed: [ruby-dev:26232]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8530 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mkmf.rb | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/lib/mkmf.rb b/lib/mkmf.rb index 987c4cb5c4..56cb7050dd 100644 --- a/lib/mkmf.rb +++ b/lib/mkmf.rb @@ -834,11 +834,15 @@ end def configuration(srcdir) mk = [] vpath = %w[$(srcdir) $(topdir) $(hdrdir)] - if !CROSS_COMPILING && CONFIG['build_os'] == 'cygwin' && CONFIG['target_os'] != 'cygwin' - vpath.each {|p| p.sub!(/.*/, '$(shell cygpath -u \&)')} - end - if !CROSS_COMPILING && CONFIG['build_os'] == 'msdosdjgpp' - CONFIG['PATH_SEPARATOR'] = ';' + if !CROSS_COMPILING + case CONFIG['build_os'] + when 'cygwin' + if CONFIG['target_os'] != 'cygwin' + vpath.each {|p| p.sub!(/.*/, '$(shell cygpath -u \&)')} + end + when 'msdosdjgpp', 'mingw32' + CONFIG['PATH_SEPARATOR'] = ';' + end end mk << %{ SHELL = /bin/sh |