summaryrefslogtreecommitdiff
path: root/cygwin
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-08-07 07:11:50 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-08-07 07:11:50 +0000
commit430eabfe13989b4bf8be2761cc2f9a968b5a9653 (patch)
tree0789e2ff0e83c3990403c7fd5036c68c761395ca /cygwin
parent6f059f33ef1eae43e2648a6a8d4c8275b97a191e (diff)
downloadruby-430eabfe13989b4bf8be2761cc2f9a968b5a9653.tar.gz
* cygwin/GNUmakefile: add forwarding DLL target for cygwin.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4351 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'cygwin')
-rw-r--r--cygwin/GNUmakefile.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/cygwin/GNUmakefile.in b/cygwin/GNUmakefile.in
index 83f47f984c..5d87139b8d 100644
--- a/cygwin/GNUmakefile.in
+++ b/cygwin/GNUmakefile.in
@@ -55,3 +55,11 @@ GNUmakefile: $(srcdir)/cygwin/GNUmakefile.in
ifeq (@target_os@,mingw32)
$(OBJS) $(MAINOBJ): win32/win32.h
endif
+
+ifeq (@target_os@,cygwin)
+cygwin-$(RUBY_INSTALL_NAME)$(MAJOR)$(MINOR).dll: $(LIBRUBY_A)
+ @NM@ --extern --defined $(LIBRUBY_A) | \
+ $(MINIRUBY) -ne 'BEGIN{puts "EXPORTS"}; puts $$1+"=cyg$(RUBY_INSTALL_NAME)$(MAJOR)$(MINOR)."+$$1 if / [CDT] _(.*)$$/' >rubydll.def
+ @DLLWRAP@ --driver-name=$(CC) -s --def=rubydll.def -o $@
+ @rm -f rubydll.def
+endif