diff options
| author | Daisuke Fujimura (fd0) <booleanlabel@gmail.com> | 2024-11-06 10:01:35 +0900 |
|---|---|---|
| committer | Nobuyoshi Nakada <nobu.nakada@gmail.com> | 2024-11-08 12:57:06 +0900 |
| commit | 07f45065a7546872192f92fa3b28d0c1bfeb6941 (patch) | |
| tree | ea250580db7ea5fc71cade7e42b4be91091df27a | |
| parent | 3c3da1ec23257d37bfa054899f80b5f622ff9ace (diff) | |
`-municode` is available for MinGW-w64 targets only
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/12015
| -rw-r--r-- | cygwin/GNUmakefile.in | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cygwin/GNUmakefile.in b/cygwin/GNUmakefile.in index 04f16cd201..a9aa33fac8 100644 --- a/cygwin/GNUmakefile.in +++ b/cygwin/GNUmakefile.in @@ -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) |
