Revert r55968 "scriptbin on cygwin"

win32/stub.c only works with malloced argv as win32/win32.c, to
realloc it.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55969 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2016-08-19 08:32:16 +00:00
parent 7f7e809a45
commit c6bf047267
2 changed files with 3 additions and 15 deletions

View File

@ -13,6 +13,9 @@ else
DLL_BASE_NAME := $(RUBY_SO_NAME)
DLLWRAP += -mno-cygwin
VPATH := $(VPATH):$(srcdir)/win32
STUBPROGRAM = rubystub$(EXEEXT)
IGNOREDPATTERNS = %~ .% %.orig %.rej \#%\#
SCRIPTPROGRAMS = $(addsuffix $(EXEEXT),$(filter-out $(IGNOREDPATTERNS),$(notdir $(wildcard $(srcdir)/bin/*))))
endif
ifneq ($(ENABLE_SHARED),yes)
@ -29,9 +32,6 @@ else
endif
WPROGRAM = $(RUBYW_INSTALL_NAME)$(EXEEXT)
STUBPROGRAM = rubystub$(EXEEXT)
IGNOREDPATTERNS = %~ .% %.orig %.rej \#%\#
SCRIPTPROGRAMS = $(addsuffix $(EXEEXT),$(filter-out $(IGNOREDPATTERNS),$(notdir $(wildcard $(srcdir)/bin/*))))
-include uncommon.mk
@ -116,17 +116,6 @@ ifeq (@target_os@,cygwin)
cygwin-$(RUBY_INSTALL_NAME)$(MAJOR)$(MINOR)0.dll: $(LIBRUBY_A) $(RUBYDEF)
$(ECHO) generating $@
$(Q) @DLLWRAP@ -s --def=$(RUBYDEF) -o $@
win32/stub.@OBJEXT@: $(TIMESTAMPDIR)/.win32.time
$(TIMESTAMPDIR)/.win32.time:
$(Q) $(MAKEDIRS) win32 $(@D)
@exit > $@
clean-platform: clean-win32
clean-win32:
$(Q) $(RM) $(TIMESTAMPDIR)/.win32.time
-$(Q) $(RMDIR) win32 2> $(NULL) || exit 0
endif
clean-local::

View File

@ -1,5 +1,4 @@
#include <ruby.h>
#include <windows.h>
static void stub_sysinit(int *argc, char ***argv);
#define ruby_sysinit stub_sysinit
#include <main.c>