1 To: vim_dev@googlegroups.com
4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 Problem: Cannot build Ruby 1.9 with MingW or Cygwin.
12 Solution: Add another include directory. (Ken Takata)
13 Files: src/Make_cyg.mak, src/Make_ming.mak
16 *** ../vim-7.3.734/src/Make_cyg.mak 2012-07-06 13:40:44.000000000 +0200
17 --- src/Make_cyg.mak 2012-11-28 16:14:41.000000000 +0100
20 # TCL_VER define to version of TCL being used (83)
21 # DYNAMIC_TCL no or yes: use yes to load the TCL DLL dynamically (yes)
22 # RUBY define to path to Ruby dir to get Ruby support (not defined)
23 ! # RUBY_VER define to version of Ruby being used (16)
24 # DYNAMIC_RUBY no or yes: use yes to load the Ruby DLL dynamically (yes)
25 # MZSCHEME define to path to MzScheme dir to get MZSCHEME support (not defined)
26 # MZSCHEME_VER define to version of MzScheme being used (209_000)
28 # TCL_VER define to version of TCL being used (83)
29 # DYNAMIC_TCL no or yes: use yes to load the TCL DLL dynamically (yes)
30 # RUBY define to path to Ruby dir to get Ruby support (not defined)
31 ! # RUBY_VER define to version of Ruby being used (16)
32 ! # RUBY_VER_LONG same, but in format with dot. (1.6)
33 ! # You must set RUBY_VER_LONG when changing RUBY_VER.
34 ! # You must set RUBY_API_VER version to RUBY_VER_LONG.
35 ! # Don't set ruby API version to RUBY_VER like 191.
36 # DYNAMIC_RUBY no or yes: use yes to load the Ruby DLL dynamically (yes)
37 # MZSCHEME define to path to MzScheme dir to get MZSCHEME support (not defined)
38 # MZSCHEME_VER define to version of MzScheme being used (209_000)
45 + ifeq (19, $(word 1,$(sort 19 $(RUBY_VER))))
46 + RUBY_19_OR_LATER = 1
49 DEFINES += -DFEAT_RUBY
50 INCLUDES += -I$(RUBY)/lib/ruby/$(RUBY_VER_LONG)/$(RUBY_PLATFORM)
51 + ifdef RUBY_19_OR_LATER
52 + INCLUDES += -I$(RUBY)/include/ruby-$(RUBY_VER_LONG) -I$(RUBY)/include/ruby-$(RUBY_VER_LONG)/$(RUBY_PLATFORM)
54 EXTRA_OBJS += $(OUTDIR)/if_ruby.o
56 ifeq (yes, $(DYNAMIC_RUBY))
57 *** ../vim-7.3.734/src/Make_ming.mak 2012-09-05 17:57:34.000000000 +0200
58 --- src/Make_ming.mak 2012-11-28 16:14:16.000000000 +0100
64 ! 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)
65 ifeq (no, $(DYNAMIC_RUBY))
66 RUBYLIB = -L$(RUBY)/lib -l$(RUBY_INSTALL_NAME)
72 ! ifeq (19, $(word 1,$(sort 19 $(RUBY_VER))))
73 ! RUBY_19_OR_LATER = 1
76 ! RUBYINC = -I $(RUBY)/lib/ruby/$(RUBY_VER_LONG)/$(RUBY_PLATFORM)
77 ! ifdef RUBY_19_OR_LATER
78 ! RUBYINC += -I $(RUBY)/include/ruby-$(RUBY_VER_LONG) -I $(RUBY)/include/ruby-$(RUBY_VER_LONG)/$(RUBY_PLATFORM)
80 ifeq (no, $(DYNAMIC_RUBY))
81 RUBYLIB = -L$(RUBY)/lib -l$(RUBY_INSTALL_NAME)
83 *** ../vim-7.3.734/src/version.c 2012-11-28 16:06:13.000000000 +0100
84 --- src/version.c 2012-11-28 16:16:28.000000000 +0100
88 { /* Add new patch number below this line */
94 From "know your smileys":
95 :----} You lie like Pinocchio
97 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
98 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
99 \\\ an exciting new programming language -- http://www.Zimbu.org ///
100 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///