We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
EXE_LDFLAGS
MUNICODE_FLAG
1 parent b7475e2 commit b4afc2bCopy full SHA for b4afc2b
1 file changed
cygwin/GNUmakefile.in
@@ -2,12 +2,8 @@ gnumake = yes
2
3
include Makefile
4
5
-ifeq ($(target_os),cygwin)
6
-MUNICODE_FLAG =
7
-else
8
-override EXE_LDFLAGS += -municode
9
-MUNICODE_FLAG = -municode
10
-endif
+MUNICODE_FLAG = $(if $(filter mingw%,$(target_os)),-municode)
+override EXE_LDFLAGS += $(MUNICODE_FLAG)
11
12
DLLWRAP = @DLLWRAP@ --target=$(target_os) --driver-name="$(CC)"
13
ifeq (@USE_LLVM_WINDRES@,yes) # USE_LLVM_WINDRES
0 commit comments