diff --git a/icu4c/source/config/mh-mingw b/icu4c/source/config/mh-mingw index 94e6439758e..78df54af07e 100644 --- a/icu4c/source/config/mh-mingw +++ b/icu4c/source/config/mh-mingw @@ -42,6 +42,11 @@ THREADSCFLAGS = -mthreads THREADSCXXFLAGS = -mthreads LIBCPPFLAGS = +## Add 'd' suffix to the names of binary files with Debug configuration +ifeq ($(ENABLE_DEBUG),1) +ICULIBSUFFIX:=$(ICULIBSUFFIX)d#M# +endif + # Commands to link. Link with C++ in case static libraries are used. LINK.c= $(CXX) $(CXXFLAGS) $(LDFLAGS) #LINK.cc= $(CXX) $(CXXFLAGS) $(LDFLAGS) diff --git a/icu4c/source/config/mh-mingw64 b/icu4c/source/config/mh-mingw64 index 6d0c5575329..7d464e572bb 100644 --- a/icu4c/source/config/mh-mingw64 +++ b/icu4c/source/config/mh-mingw64 @@ -42,6 +42,11 @@ THREADSCFLAGS = -mthreads THREADSCXXFLAGS = -mthreads LIBCPPFLAGS = +## Add 'd' suffix to the names of binary files with Debug configuration +ifeq ($(ENABLE_DEBUG),1) +ICULIBSUFFIX:=$(ICULIBSUFFIX)d#M# +endif + # Commands to link. Link with C++ in case static libraries are used. LINK.c= $(CXX) $(CXXFLAGS) $(LDFLAGS) #LINK.cc= $(CXX) $(CXXFLAGS) $(LDFLAGS)