diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-11-05 04:43:46 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-11-05 04:43:46 +0000 |
commit | 49775b88e9cc4381f6e43e4465c7003bdba2b228 (patch) | |
tree | 402c55ae7952263353e5cec27d9619d4b7132c9f /configure.in | |
parent | 479b27ac41a3d1d6d8fc04854a60df19d0389f45 (diff) | |
download | ruby-49775b88e9cc4381f6e43e4465c7003bdba2b228.tar.gz |
* configure.in, cygwin/GNUmakefile.in (mingw): use def file to alias
symbols. [ruby-dev:27532]
* bcc32/mkexports.rb, win32/mkexports.rb: make aliases in DLL.
* win32/win32.c, win32/win32.h: replace symbols only when RUBY_EXPORT
is defined.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9502 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/configure.in b/configure.in index c58b3ca2f7..7209f0a592 100644 --- a/configure.in +++ b/configure.in @@ -1370,11 +1370,11 @@ case "$target_os" in esac ;; cygwin*|mingw*) + LIBRUBY_DLDFLAGS="${DLDFLAGS}"' -Wl,--out-implib=$(LIBRUBY)' case "$target_os" in cygwin*) if test x"$enable_shared" = xyes; then LIBRUBY_SO='cyg$(RUBY_SO_NAME)'${MAJOR}${MINOR}.dll - LIBRUBY='lib$(RUBY_SO_NAME).dll.a' fi AC_LIBOBJ([strftime]) ;; @@ -1382,7 +1382,7 @@ case "$target_os" in RUBY_SO_NAME=${rb_cv_msvcrt}-'$(RUBY_INSTALL_NAME)'${MAJOR}${MINOR} if test x"$enable_shared" = xyes; then LIBRUBY_SO='$(RUBY_SO_NAME)'.dll - LIBRUBY='lib$(LIBRUBY_SO).a' + LIBRUBY_DLDFLAGS="${LIBRUBY_DLDFLAGS}"' $(RUBYDEF)' fi AC_LIBOBJ([win32]) COMMON_LIBS=m @@ -1390,11 +1390,12 @@ case "$target_os" in COMMON_HEADERS="winsock2.h windows.h" ;; esac - LIBRUBY_DLDFLAGS="${DLDFLAGS}"' -Wl,--out-implib=$(LIBRUBY)' LIBRUBY_ALIASES='' FIRSTMAKEFILE=GNUmakefile:cygwin/GNUmakefile.in SOLIBS='$(LIBS)' - if test x"$enable_shared" = xno; then + if test x"$enable_shared" = xyes; then + LIBRUBY='lib$(RUBY_SO_NAME).dll.a' + else LIBRUBY_SO=dummy LIBRUBY='lib$(RUBY_SO_NAME).a' LIBRUBYARG='-l$(RUBY_SO_NAME)' |