diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-05-08 01:14:14 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-05-08 01:14:14 +0000 |
commit | 240e3ce9159ab29636baf2d0c79d9bb6f0b60b19 (patch) | |
tree | 96c872851cbbacdd4ef0d053e0398500b83ef80b /win32 | |
parent | b0d8c103fc15bfadc408d148c2e79b773d22589e (diff) | |
download | ruby-240e3ce9159ab29636baf2d0c79d9bb6f0b60b19.tar.gz ruby-240e3ce9159ab29636baf2d0c79d9bb6f0b60b19.tar.xz ruby-240e3ce9159ab29636baf2d0c79d9bb6f0b60b19.zip |
* Makefile.in, configure.in, win32/Makefile.sub (RUBY_BASE_NAME):
program base name. [ruby-dev:38241]
* configure.in (--with-soname): base name of shared library.
[ruby-dev:38290]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23368 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32')
-rw-r--r-- | win32/Makefile.sub | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/win32/Makefile.sub b/win32/Makefile.sub index 8c15802b4..5e375a134 100644 --- a/win32/Makefile.sub +++ b/win32/Makefile.sub @@ -32,8 +32,11 @@ LIB = $(pathlist:;=/lib;) !ifndef srcdir srcdir = .. !endif +!ifndef RUBY_BASE_NAME +RUBY_BASE_NAME = ruby +!endif !ifndef RUBY_INSTALL_NAME -RUBY_INSTALL_NAME = $(PROGRAM_PREFIX)ruby$(RUBY_SUFFIX) +RUBY_INSTALL_NAME = $(PROGRAM_PREFIX)$(RUBY_BASE_NAME)$(RUBY_SUFFIX) !endif !if !defined(RUBYW_INSTALL_NAME) || "$(RUBYW_INSTALL_NAME)" == "$(RUBY_INSTALL_NAME)" RUBYW_INSTALL_NAME = $(RUBY_INSTALL_NAME:ruby=rubyw) @@ -116,7 +119,7 @@ ruby_version = $(MAJOR).$(MINOR).$(TEENY) !endif !ifndef RUBY_SO_NAME -RUBY_SO_NAME = $(RT)-$(RUBY_INSTALL_NAME)$(MAJOR)$(MINOR)$(TEENY) +RUBY_SO_NAME = $(RT)-$(RUBY_BASE_NAME)$(MAJOR)$(MINOR)$(TEENY) !endif !ifndef RUBY_PLATFORM RUBY_PLATFORM = $(arch) @@ -529,7 +532,7 @@ $(CONFIG_H): $(MKFILES) $(srcdir)/win32/Makefile.sub $(win_srcdir)/Makefile.sub #define LOAD_RELATIVE 1 #define DLEXT ".so" #define RUBY_LIB_VERSION_STYLE 3 /* full */ -#define RUBY_LIB_PREFIX "/lib/$(RUBY_INSTALL_NAME)" +#define RUBY_LIB_PREFIX "/lib/$(RUBY_BASE_NAME)" #define RUBY_LIB RUBY_LIB_PREFIX"/"RUBY_LIB_VERSION #define RUBY_SITE_LIB RUBY_LIB_PREFIX"/site_ruby" #define RUBY_SITE_LIB2 RUBY_SITE_LIB"/"RUBY_LIB_VERSION @@ -645,6 +648,7 @@ s,@ARCHFILE@,,;t t s,@RDOCTARGET@,,;t t s,@LIBRUBY_LDSHARED@,$(LIBRUBY_LDSHARED),;t t s,@LIBRUBY_DLDFLAGS@,$(LIBRUBY_DLDFLAGS),;t t +s,@RUBY_BASE_NAME@,$(RUBY_BASE_NAME),;t t s,@RUBY_INSTALL_NAME@,$(RUBY_INSTALL_NAME),;t t s,@rubyw_install_name@,$(RUBYW_INSTALL_NAME),;t t s,@RUBYW_INSTALL_NAME@,$(RUBYW_INSTALL_NAME),;t t @@ -686,9 +690,10 @@ s,@EXPORT_PREFIX@, ,;t t s,@arch@,$(ARCH)-$(PLATFORM),;t t s,@sitearch@,$(ARCH)-$(RT),;t t s,@ruby_version@,$(ruby_version),;t t -s,@sitedir@,$${prefix}/lib/$${RUBY_INSTALL_NAME}/site_ruby,;t t -s,@vendordir@,$${prefix}/lib/$${RUBY_INSTALL_NAME}/vendor_ruby,;t t -s,@rubyhdrdir@,$$(includedir)/$${RUBY_INSTALL_NAME}-$$(ruby_version),;t t +s,@rubylibprefix@,$${prefix}/lib/$${RUBY_BASE_NAME},;t t +s,@sitedir@,$${rubylibprefix}/site_ruby,;t t +s,@vendordir@,$${rubylibprefix}/vendor_ruby,;t t +s,@rubyhdrdir@,$$(includedir)/$${RUBY_BASE_NAME}-$$(ruby_version),;t t s,@sitehdrdir@,$$(rubyhdrdir)/site_ruby,;t t s,@vendorhdrdir@,$$(rubyhdrdir)/vendor_ruby,;t t s,@configure_args@,--with-make-prog=nmake --enable-shared $(configure_args),;t t |