From ae785d88bf8d77c7ea0e431afa39d57481596e85 Mon Sep 17 00:00:00 2001 From: "Daisuke Fujimura (fd0)" Date: Wed, 6 Nov 2024 21:28:19 +0900 Subject: [PATCH] `EXE_LDFLAGS` uses the same `MUNICODE_FLAG` --- cygwin/GNUmakefile.in | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/cygwin/GNUmakefile.in b/cygwin/GNUmakefile.in index a9aa33fac8..6fe2a768fb 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)" ifeq (@USE_LLVM_WINDRES@,yes) # USE_LLVM_WINDRES