`-municode` is available for MinGW-w64 targets only

This commit is contained in:
Daisuke Fujimura (fd0) 2024-11-06 10:01:35 +09:00 коммит произвёл Nobuyoshi Nakada
Родитель 3c3da1ec23
Коммит 07f45065a7
1 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -2,7 +2,12 @@ gnumake = yes
include Makefile
ifeq ($(target_os),cygwin)
MUNICODE_FLAG =
else
override EXE_LDFLAGS += -municode
MUNICODE_FLAG = -municode
endif
DLLWRAP = @DLLWRAP@ --target=$(target_os) --driver-name="$(CC)"
ifeq (@USE_LLVM_WINDRES@,yes) # USE_LLVM_WINDRES
@ -71,7 +76,7 @@ $(PROGRAM): $(RUBY_INSTALL_NAME).res.$(OBJEXT)
$(WPROGRAM): $(RUBYW_INSTALL_NAME).res.$(OBJEXT)
@rm -f $@
$(ECHO) linking $@
$(Q) $(PURIFY) $(CC) -municode -mwindows -e $(SYMBOL_PREFIX)mainCRTStartup $(LDFLAGS) $(XLDFLAGS) \
$(Q) $(PURIFY) $(CC) $(MUNICODE_FLAG) -mwindows -e $(SYMBOL_PREFIX)mainCRTStartup $(LDFLAGS) $(XLDFLAGS) \
$(MAINOBJ) $(EXTOBJS) $(LIBRUBYARG) $(LIBS) -o $@
$(STUBPROGRAM): $(RUBY_INSTALL_NAME).res.$(OBJEXT)