Mercurial > vim
comparison src/Make_cyg_ming.mak @ 13734:600a38fe5c00
patch 8.0.1739: MS-Windows with msys2 cannot build Ruby statically
commit https://github.com/vim/vim/commit/6176697203b0f168f4566597e15d8488b62ad490
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Apr 20 22:31:41 2018 +0200
patch 8.0.1739: MS-Windows with msys2 cannot build Ruby statically
Problem: MS-Windows with msys2 cannot build Ruby statically.
Solution: Define RUBY_VERSION. (Gray Wolf, closes https://github.com/vim/vim/issues/2826)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 20 Apr 2018 22:45:07 +0200 |
parents | c83ec560409c |
children | 1d8601bdd6e6 |
comparison
equal
deleted
inserted
replaced
13733:c38b030ce737 | 13734:600a38fe5c00 |
---|---|
388 endif | 388 endif |
389 | 389 |
390 | 390 |
391 # Ruby interface: | 391 # Ruby interface: |
392 # RUBY=[Path to Ruby directory] (Set inside Make_cyg.mak or Make_ming.mak) | 392 # RUBY=[Path to Ruby directory] (Set inside Make_cyg.mak or Make_ming.mak) |
393 # DYNAMIC_RUBY=yes (to load the Ruby DLL dynamically) | 393 # DYNAMIC_RUBY=yes (to load the Ruby DLL dynamically, "no" for static) |
394 # RUBY_VER=[Ruby version, eg 19, 22] (default is 22) | 394 # RUBY_VER=[Ruby version, eg 19, 22] (default is 22) |
395 # RUBY_API_VER_LONG=[Ruby API version, eg 1.8, 1.9.1, 2.2.0] | 395 # RUBY_API_VER_LONG=[Ruby API version, eg 1.8, 1.9.1, 2.2.0] |
396 # (default is 2.2.0) | 396 # (default is 2.2.0) |
397 # You must set RUBY_API_VER_LONG when changing RUBY_VER. | 397 # You must set RUBY_API_VER_LONG when changing RUBY_VER. |
398 # Note: If you use Ruby 1.9.3, set as follows: | 398 # Note: If you use Ruby 1.9.3, set as follows: |
456 ifdef RUBY_19_OR_LATER | 456 ifdef RUBY_19_OR_LATER |
457 RUBYINC += -I $(RUBY)/include/ruby-$(RUBY_API_VER_LONG) -I $(RUBY)/include/ruby-$(RUBY_API_VER_LONG)/$(RUBY_PLATFORM) | 457 RUBYINC += -I $(RUBY)/include/ruby-$(RUBY_API_VER_LONG) -I $(RUBY)/include/ruby-$(RUBY_API_VER_LONG)/$(RUBY_PLATFORM) |
458 endif | 458 endif |
459 ifeq (no, $(DYNAMIC_RUBY)) | 459 ifeq (no, $(DYNAMIC_RUBY)) |
460 RUBYLIB = -L$(RUBY)/lib -l$(RUBY_INSTALL_NAME) | 460 RUBYLIB = -L$(RUBY)/lib -l$(RUBY_INSTALL_NAME) |
461 CFLAGS += -DRUBY_VERSION=$(RUBY_VER) | |
461 endif | 462 endif |
462 | 463 |
463 endif # RUBY | 464 endif # RUBY |
464 | 465 |
465 # See feature.h for a list of options. | 466 # See feature.h for a list of options. |