diff options
author | Bram Moolenaar <Bram@vim.org> | 2012-11-28 16:18:29 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2012-11-28 16:18:29 +0100 |
commit | dd53a4155311b43f06d9d01ad660be193dc4c0f2 (patch) | |
tree | 397b1e040a354186a4a5033503f0ca3b36c0e258 /src/Make_ming.mak | |
parent | 442b5c48fd27f88357dedc3161bde01b5d99e0d2 (diff) | |
download | vim-git-dd53a4155311b43f06d9d01ad660be193dc4c0f2.tar.gz |
updated for version 7.3.735v7.3.735
Problem: Cannot build Ruby 1.9 with MingW or Cygwin.
Solution: Add another include directory. (Ken Takata)
Diffstat (limited to 'src/Make_ming.mak')
-rw-r--r-- | src/Make_ming.mak | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/Make_ming.mak b/src/Make_ming.mak index 8e523a24e..9402ccce7 100644 --- a/src/Make_ming.mak +++ b/src/Make_ming.mak @@ -301,7 +301,14 @@ RUBY_INSTALL_NAME = msvcrt-ruby$(RUBY_API_VER) endif endif -RUBYINC =-I $(RUBY)/lib/ruby/$(RUBY_VER_LONG)/$(RUBY_PLATFORM) -I $(RUBY)/include/ruby-$(RUBY_VER_LONG) -I $(RUBY)/include/ruby-$(RUBY_VER_LONG)/$(RUBY_PLATFORM) +ifeq (19, $(word 1,$(sort 19 $(RUBY_VER)))) +RUBY_19_OR_LATER = 1 +endif + +RUBYINC = -I $(RUBY)/lib/ruby/$(RUBY_VER_LONG)/$(RUBY_PLATFORM) +ifdef RUBY_19_OR_LATER +RUBYINC += -I $(RUBY)/include/ruby-$(RUBY_VER_LONG) -I $(RUBY)/include/ruby-$(RUBY_VER_LONG)/$(RUBY_PLATFORM) +endif ifeq (no, $(DYNAMIC_RUBY)) RUBYLIB = -L$(RUBY)/lib -l$(RUBY_INSTALL_NAME) endif |