diff options
author | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-06-01 12:58:56 +0000 |
---|---|---|
committer | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-06-01 12:58:56 +0000 |
commit | f9b3c6cb88b74142d1fd9ebfdd809c7db6140fde (patch) | |
tree | 3c702e558fd624f097011e635fb851425d7623c8 /cygwin | |
parent | e726f12ba46f1081b566fec14a2cb2988586872f (diff) | |
download | ruby-f9b3c6cb88b74142d1fd9ebfdd809c7db6140fde.tar.gz ruby-f9b3c6cb88b74142d1fd9ebfdd809c7db6140fde.tar.xz ruby-f9b3c6cb88b74142d1fd9ebfdd809c7db6140fde.zip |
* configure.in: should not use def file, use ld with
--export-all-symbols option on Cygwin/MinGW.
* defines.h: ditto.
* cygwin/GNUmakefile.in: ditto.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3894 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'cygwin')
-rw-r--r-- | cygwin/GNUmakefile.in | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/cygwin/GNUmakefile.in b/cygwin/GNUmakefile.in index 0acb327bb..7e8672b9d 100644 --- a/cygwin/GNUmakefile.in +++ b/cygwin/GNUmakefile.in @@ -6,6 +6,7 @@ ifneq ($(ENABLE_SHARED),yes) RUBY_EXP = $(RUBY_INSTALL_NAME).exp EXTOBJS = $(RUBY_EXP) LIBRUBYARG = $(LIBRUBY_A) + LIBRUBY_SO = endif ifeq ($(RUBY_INSTALL_NAME),ruby) @@ -14,12 +15,11 @@ else RUBYW_INSTALL_NAME = $(subst ruby,rubyw,$(RUBY_INSTALL_NAME)) endif WPROGRAM = $(RUBYW_INSTALL_NAME)$(EXEEXT) -RUBYDEF = $(RUBY_INSTALL_NAME).def SOLIBS := $(RUBY_SO_NAME).res.@OBJEXT@ $(SOLIBS) EXTOBJS += $(@:$(EXEEXT)=.res.@OBJEXT@) -$(LIBRUBY_SO): $(RUBYDEF) $(RUBY_SO_NAME).res.@OBJEXT@ $(RUBY_EXP) -$(LIBRUBY): $(LIBRUBY_SO) +$(LIBRUBY): $(RUBY_EXP) $(LIBRUBY_SO) +$(RUBY_EXP) $(LIBRUBY_SO): $(RUBY_SO_NAME).res.@OBJEXT@ %.res.@OBJEXT@: %.rc @WINDRES@ --include-dir . --include-dir $(<D) --include-dir $(srcdir)/win32 $< $@ @@ -36,14 +36,12 @@ $(WPROGRAM): $(RUBYW_INSTALL_NAME).res.@OBJEXT@ $(PURIFY) $(CC) -mwindows -e _mainCRTStartup $(LDFLAGS) $(XLDFLAGS) \ $(MAINOBJ) $(EXTOBJS) $(LIBRUBYARG) $(LIBS) -o $@ -$(RUBYDEF): $(LIBRUBY_A) - echo EXPORTS > $(RUBYDEF) - @NM@ --extern-only --defined-only $(LIBRUBY_A) | sed -n 's/.* [CDT] _//p' >> $(RUBYDEF) - -$(RUBY_EXP): $(RUBYDEF) - @DLLWRAP@ --output-exp=$(RUBY_EXP) --output-lib=$(LIBRUBY) \ - --def=$(RUBYDEF) $(LIBRUBY_A) $(LIBS) -o $(PROGRAM) - rm $(PROGRAM) +$(RUBY_EXP): $(LIBRUBY_A) + @DLLWRAP@ --target=@target_os@ --driver-name=$(CC) \ + --output-exp=$(RUBY_EXP) \ + --export-all $(LIBRUBY_A) $(LIBS) -o $(PROGRAM) + $(LDSHARED) $(DLDFLAGS) $(OBJS) dmyext.o $(SOLIBS) -o $(PROGRAM) + @rm -f $(PROGRAM) GNUmakefile: $(srcdir)/cygwin/GNUmakefile.in |