File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,7 +2,12 @@ gnumake = yes
22
33include Makefile
44
5+ ifeq ($(target_os),cygwin)
6+ MUNICODE_FLAG =
7+ else
58override EXE_LDFLAGS += -municode
9+ MUNICODE_FLAG = -municode
10+ endif
611
712DLLWRAP = @DLLWRAP@ --target=$(target_os) --driver-name="$(CC)"
813ifeq (@USE_LLVM_WINDRES@,yes) # USE_LLVM_WINDRES
@@ -71,7 +76,7 @@ $(PROGRAM): $(RUBY_INSTALL_NAME).res.$(OBJEXT)
7176$(WPROGRAM): $(RUBYW_INSTALL_NAME).res.$(OBJEXT)
7277 @rm -f $@
7378 $(ECHO) linking $@
74- $(Q) $(PURIFY) $(CC) -municode -mwindows -e $(SYMBOL_PREFIX)mainCRTStartup $(LDFLAGS) $(XLDFLAGS) \
79+ $(Q) $(PURIFY) $(CC) $(MUNICODE_FLAG) -mwindows -e $(SYMBOL_PREFIX)mainCRTStartup $(LDFLAGS) $(XLDFLAGS) \
7580 $(MAINOBJ) $(EXTOBJS) $(LIBRUBYARG) $(LIBS) -o $@
7681$(STUBPROGRAM): $(RUBY_INSTALL_NAME).res.$(OBJEXT)
7782
You can’t perform that action at this time.
0 commit comments