From c74ab88dc9b871e7c8db5277232cb6e50c6fc997 Mon Sep 17 00:00:00 2001 From: Michael Ow Date: Fri, 30 Mar 2012 17:58:31 +0000 Subject: [PATCH] ICU-8947 Fix some static build failures X-SVN-Rev: 31663 --- icu4c/source/tools/pkgdata/pkgdata.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/icu4c/source/tools/pkgdata/pkgdata.cpp b/icu4c/source/tools/pkgdata/pkgdata.cpp index 7a56386bd52..6b52b46424b 100644 --- a/icu4c/source/tools/pkgdata/pkgdata.cpp +++ b/icu4c/source/tools/pkgdata/pkgdata.cpp @@ -1602,12 +1602,21 @@ static int32_t pkg_createWindowsDLL(const char mode, const char *gencFilePath, U if (IN_STATIC_MODE(mode)) { char staticLibFilePath[SMALL_BUFFER_MAX_SIZE] = ""; +#ifdef CYGWINMSVC + sprintf(staticLibFilePath, "%s%s%s%s%s", + o->targetDir, + PKGDATA_FILE_SEP_STRING, + "s", + o->libName, + LIB_EXT); +#else sprintf(staticLibFilePath, "%s%s%s%s%s", o->targetDir, PKGDATA_FILE_SEP_STRING, (strstr(o->libName, "icudt") ? "s" : ""), o->libName, LIB_EXT); +#endif sprintf(cmd, "%s\"%s\" \"%s\"", LIB_CMD, -- 2.40.0