Skip to content

Commit b7475e2

Browse files
fd00hsbt
authored andcommitted
-municode is available for MinGW-w64 targets only
1 parent b3a1fc1 commit b7475e2

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

cygwin/GNUmakefile.in

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@ gnumake = yes
22

33
include Makefile
44

5+
ifeq ($(target_os),cygwin)
6+
MUNICODE_FLAG =
7+
else
58
override EXE_LDFLAGS += -municode
9+
MUNICODE_FLAG = -municode
10+
endif
611

712
DLLWRAP = @DLLWRAP@ --target=$(target_os) --driver-name="$(CC)"
813
ifeq (@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

0 commit comments

Comments
 (0)