mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* configure.in: RUBY_SO_NAME is msvcrt-rubyXX on mswin32/mingw32.
* configure.in (sitearch): new var. * mkconfig.rb, lib/mkmf.rb (sitearch): ditto. * win32/Makefile.sub, win32/setup.mak (sitearch): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2737 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8b20131054
commit
fc8f412488
6 changed files with 36 additions and 15 deletions
10
ChangeLog
10
ChangeLog
|
@ -1,3 +1,13 @@
|
|||
Fri Aug 23 17:06:48 2002 WATANABE Hirofumi <eban@ruby-lang.org>
|
||||
|
||||
* configure.in: RUBY_SO_NAME is msvcrt-rubyXX on mswin32/mingw32.
|
||||
|
||||
* configure.in (sitearch): new var.
|
||||
|
||||
* mkconfig.rb, lib/mkmf.rb (sitearch): ditto.
|
||||
|
||||
* win32/Makefile.sub, win32/setup.mak (sitearch): ditto.
|
||||
|
||||
Wed Aug 21 16:53:00 2002 Michal Rokos <michal@ruby-lang.org>
|
||||
|
||||
* *.c: int, long types cleanup.
|
||||
|
|
27
configure.in
27
configure.in
|
@ -1045,7 +1045,17 @@ case "$target_os" in
|
|||
esac
|
||||
;;
|
||||
cygwin*|mingw*)
|
||||
case "$target_os" in
|
||||
cygwin*)
|
||||
RUBY_SO_NAME=$target_os-'$(RUBY_INSTALL_NAME)'${MAJOR}${MINOR}
|
||||
AC_LIBOBJ([strftime])
|
||||
CCDLFLAGS=-DUSEIMPORTLIB ;;
|
||||
mingw*)
|
||||
RUBY_SO_NAME=msvcrt-'$(RUBY_INSTALL_NAME)'${MAJOR}${MINOR}
|
||||
AC_LIBOBJ([win32])
|
||||
CFLAGS="-DNT -D__NO_ISOCEXT $CFLAGS"
|
||||
CCDLFLAGS=-DIMPORT ;;
|
||||
esac
|
||||
if test x"$enable_shared" = xyes; then
|
||||
LIBRUBY_SO='$(RUBY_SO_NAME)'.dll
|
||||
LIBRUBY_DLDFLAGS='-Wl,--out-implib=$(LIBRUBY) $(RUBYDEF)'
|
||||
|
@ -1060,15 +1070,6 @@ case "$target_os" in
|
|||
LIBRUBYARG='-L. -l$(RUBY_SO_NAME)'
|
||||
FIRSTMAKEFILE=GNUmakefile:cygwin/GNUmakefile.in
|
||||
SOLIBS='$(LIBS)'
|
||||
case "$target_os" in
|
||||
cygwin*)
|
||||
AC_LIBOBJ([strftime])
|
||||
CCDLFLAGS=-DUSEIMPORTLIB ;;
|
||||
mingw*)
|
||||
AC_LIBOBJ([win32])
|
||||
CFLAGS="-DNT -D__NO_ISOCEXT $CFLAGS"
|
||||
CCDLFLAGS=-DIMPORT ;;
|
||||
esac
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
|
@ -1126,6 +1127,7 @@ AC_DEFINE_UNQUOTED(RUBY_SITE_LIB, "${RUBY_SITE_LIB_PATH}")
|
|||
AC_DEFINE_UNQUOTED(RUBY_SITE_LIB2, "${RUBY_SITE_LIB_PATH2}")
|
||||
|
||||
AC_SUBST(arch)dnl
|
||||
AC_SUBST(sitearch)dnl
|
||||
AC_SUBST(sitedir)dnl
|
||||
|
||||
configure_args=$ac_configure_args
|
||||
|
@ -1145,8 +1147,13 @@ else
|
|||
AC_DEFINE_UNQUOTED(RUBY_PLATFORM, "${arch}")
|
||||
fi
|
||||
|
||||
case "$target_os" in
|
||||
mingw*) sitearch="i386-msvcrt" ;;
|
||||
*) sitearch="${arch}" ;;
|
||||
esac
|
||||
|
||||
AC_DEFINE_UNQUOTED(RUBY_ARCHLIB, "${RUBY_LIB_PATH}/${arch}")
|
||||
AC_DEFINE_UNQUOTED(RUBY_SITE_ARCHLIB, "${RUBY_SITE_LIB_PATH2}/${arch}")
|
||||
AC_DEFINE_UNQUOTED(RUBY_SITE_ARCHLIB, "${RUBY_SITE_LIB_PATH2}/${sitearch}")
|
||||
|
||||
AC_ARG_WITH(search-path,
|
||||
[ --with-search-path=DIR specify the additional search path],
|
||||
|
|
|
@ -542,6 +542,7 @@ LIBPATH = #{libpath}
|
|||
RUBY_INSTALL_NAME = #{CONFIG["RUBY_INSTALL_NAME"]}
|
||||
RUBY_SO_NAME = #{CONFIG["RUBY_SO_NAME"]}
|
||||
arch = #{CONFIG["arch"]}
|
||||
sitearch = #{CONFIG["sitearch"]}
|
||||
ruby_version = #{Config::CONFIG["ruby_version"]}
|
||||
EOMF
|
||||
if destdir = CONFIG["prefix"].scan(drive)[0] and !destdir.empty?
|
||||
|
|
|
@ -93,7 +93,7 @@ print <<EOS
|
|||
CONFIG["rubylibdir"] = "$(libdir)/ruby/$(ruby_version)"
|
||||
CONFIG["archdir"] = "$(rubylibdir)/$(arch)"
|
||||
CONFIG["sitelibdir"] = "$(sitedir)/$(ruby_version)"
|
||||
CONFIG["sitearchdir"] = "$(sitelibdir)/$(arch)"
|
||||
CONFIG["sitearchdir"] = "$(sitelibdir)/$(sitearch)"
|
||||
CONFIG["compile_dir"] = "#{Dir.pwd}"
|
||||
MAKEFILE_CONFIG = {}
|
||||
CONFIG.each{|k,v| MAKEFILE_CONFIG[k] = v.dup}
|
||||
|
|
|
@ -60,6 +60,7 @@ DEBUGFLAGS = -Zi
|
|||
OPTFLAGS = -O2b2xg-
|
||||
!endif
|
||||
OS = mswin32
|
||||
RT = msvcrt
|
||||
|
||||
!if !defined(prefix)
|
||||
prefix = /usr
|
||||
|
@ -252,7 +253,7 @@ config.h: Makefile $(srcdir)/win32/Makefile.sub
|
|||
#define RUBY_SITE_LIB2 "/lib/ruby/site_ruby/1.7"
|
||||
#define RUBY_PLATFORM "$(ARCH)-$(OS)"
|
||||
#define RUBY_ARCHLIB "/lib/ruby/1.7/$(ARCH)-$(OS)"
|
||||
#define RUBY_SITE_ARCHLIB "/lib/ruby/site_ruby/1.7/$(ARCH)-$(OS)"
|
||||
#define RUBY_SITE_ARCHLIB "/lib/ruby/site_ruby/1.7/$(ARCH)-$(RT)"
|
||||
<<KEEP
|
||||
|
||||
config.status: Makefile $(srcdir)/win32/Makefile.sub $(MINIRUBY)
|
||||
|
@ -331,6 +332,7 @@ s,@SOLIBS@,$(SOLIBS),;t t
|
|||
s,@DLDLIBS@,$(DLDLIBS),;t t
|
||||
s,@ENABLE_SHARED@,yes,;t t
|
||||
s,@arch@,$(ARCH)-$(OS),;t t
|
||||
s,@sitearch@,$(ARCH)-$(RT),;t t
|
||||
s,@sitedir@,$${prefix}/lib/ruby/site_ruby,;t t
|
||||
s,@configure_args@,--with-make-prog=nmake --enable-shared $(configure_args),;t t
|
||||
s,@configure_input@,$$configure_input,;t t
|
||||
|
|
|
@ -8,6 +8,7 @@ srcdir = $(WIN32DIR:/win32=)
|
|||
srcdir = $(WIN32DIR)/..
|
||||
!ENDIF
|
||||
OS = mswin32
|
||||
RT = msvcrt
|
||||
|
||||
all: ext
|
||||
all: Makefile
|
||||
|
@ -17,7 +18,7 @@ Makefile:
|
|||
@echo ### makefile for ruby $(OS) ###> $@
|
||||
@echo srcdir = $(srcdir:\=/)>> $@
|
||||
@echo RUBY_INSTALL_NAME = ruby>> $@
|
||||
@echo RUBY_SO_NAME = $(OS)-$$(RUBY_INSTALL_NAME)17>> $@
|
||||
@echo RUBY_SO_NAME = $(RT)-$$(RUBY_INSTALL_NAME)17>> $@
|
||||
@echo prefix = /usr>> $@
|
||||
@echo CFLAGS = -nologo -MD -DNT=1 $$(DEBUGFLAGS) $$(OPTFLAGS) $$(PROCESSOR_FLAG)>> $@
|
||||
@echo CPPFLAGS = -I. -I$$(srcdir) -I$$(srcdir)/missing -DLIBRUBY_SO=\"$$(LIBRUBY_SO)\">> $@
|
||||
|
|
Loading…
Reference in a new issue