diff options
| author | Daisuke Fujimura (fd0) <booleanlabel@gmail.com> | 2024-11-06 21:28:19 +0900 |
|---|---|---|
| committer | nagachika <nagachika@ruby-lang.org> | 2024-11-19 19:31:46 +0900 |
| commit | 104ba2edfb1ccfa382f2312e983d16206bd2a608 (patch) | |
| tree | ef61631f1421939276503034274f476c6c818b98 | |
| parent | fba0b48c8922d819b6b4e032ed34f08bd390fc65 (diff) | |
`EXE_LDFLAGS` uses the same `MUNICODE_FLAG`
| -rw-r--r-- | cygwin/GNUmakefile.in | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/cygwin/GNUmakefile.in b/cygwin/GNUmakefile.in index b299b32388..6e19cecd5f 100644 --- a/cygwin/GNUmakefile.in +++ b/cygwin/GNUmakefile.in @@ -2,12 +2,8 @@ gnumake = yes include Makefile -ifeq ($(target_os),cygwin) -MUNICODE_FLAG = -else -override EXE_LDFLAGS += -municode -MUNICODE_FLAG = -municode -endif +MUNICODE_FLAG = $(if $(filter mingw%,$(target_os)),-municode) +override EXE_LDFLAGS += $(MUNICODE_FLAG) DLLWRAP = @DLLWRAP@ --target=$(target_os) --driver-name="$(CC)" windres-cpp := $(CPP) -xc |
