From e8e3a5dee4caa82e71c5345a43e31ca0801a538a Mon Sep 17 00:00:00 2001 From: sav-ix Date: Fri, 3 Aug 2018 05:08:58 +0300 Subject: [PATCH] ICU-13138 MinGW: add 'd' suffix to the names of binary files with Debug config (#28) For builds using Cygwin and MSVC with Debug configuration, '.dll' and '.lib' binaries has 'd' suffix. Doing the same for builds using MinGW and MinGW64, based on the code from MSVC toolchain. Task-number: ICU-13138 --- icu4c/source/config/mh-mingw | 5 +++++ icu4c/source/config/mh-mingw64 | 5 +++++ 2 files changed, 10 insertions(+) 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)