Skip to content

Commit b4afc2b

Browse files
fd00hsbt
authored andcommitted
EXE_LDFLAGS uses the same MUNICODE_FLAG
1 parent b7475e2 commit b4afc2b

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

cygwin/GNUmakefile.in

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

33
include Makefile
44

5-
ifeq ($(target_os),cygwin)
6-
MUNICODE_FLAG =
7-
else
8-
override EXE_LDFLAGS += -municode
9-
MUNICODE_FLAG = -municode
10-
endif
5+
MUNICODE_FLAG = $(if $(filter mingw%,$(target_os)),-municode)
6+
override EXE_LDFLAGS += $(MUNICODE_FLAG)
117

128
DLLWRAP = @DLLWRAP@ --target=$(target_os) --driver-name="$(CC)"
139
ifeq (@USE_LLVM_WINDRES@,yes) # USE_LLVM_WINDRES

0 commit comments

Comments
 (0)