summaryrefslogtreecommitdiff
path: root/cygwin
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-07-02 15:57:18 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-07-02 15:57:18 +0000
commit4e4b377a8e8573961709002421d91afd37e3a9e0 (patch)
treec05b5317bd0b486853e97d4c00bf33859ec7ebdb /cygwin
parent5eccd28bb30b5ebdc57ded504a27fbf488a65050 (diff)
downloadruby-4e4b377a8e8573961709002421d91afd37e3a9e0.tar.gz
2000-07-02
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@800 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'cygwin')
-rw-r--r--cygwin/GNUmakefile.in24
1 files changed, 16 insertions, 8 deletions
diff --git a/cygwin/GNUmakefile.in b/cygwin/GNUmakefile.in
index d4ee88d1d1..e7b7b5c5dd 100644
--- a/cygwin/GNUmakefile.in
+++ b/cygwin/GNUmakefile.in
@@ -1,18 +1,26 @@
include Makefile
ARCH=@arch@
+ENABLE_SHARED=@ENABLE_SHARED@
-ifneq (,$(findstring mingw, $(ARCH)))
-DLL = rubymg.dll
-DLLWRAP_FLAGS =
+ifneq (,$(findstring no, $(ENABLE_SHARED)))
+ DLL = dummy.exe
+ DLLNAME = ruby.exe
+ RUBYEXP = --output-exp=ruby.exp
+ MAINOBJ := ruby.exp $(MAINOBJ)
+ LIBRUBYARG := librubys.a
else
-DLL = rubycw.dll
-DLLWRAP_FLAGS = -Wl,-e,__cygwin_noncygwin_dll_entry@12
+ ifneq (,$(findstring mingw, $(ARCH)))
+ DLL = rubymg.dll
+ DLLNAME = rubymg.dll
+ else
+ DLL = rubycw.dll
+ DLLNAME = rubycw.dll
+ endif
+ RUBYEXP =
endif
-ifeq (,$(strip $(LIBRUBY_ALIASES)))
miniruby$(EXEEXT): $(DLL)
-endif
$(DLL): $(OBJS) dmyext.o
- $(LDSHARED) $(DLDFLAGS) -o $(DLL) --output-lib=$(LIBRUBY_SO) --dllname=$(DLL) --add-stdcall-alias $(OBJS) dmyext.o $(LIBS)
+ $(LDSHARED) $(DLDFLAGS) -o $(DLL) --output-lib=$(LIBRUBY_SO) --dllname=$(DLLNAME) --add-stdcall-alias $(RUBYEXP) $(OBJS) dmyext.o $(LIBS)