mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-14 09:21:03 +00:00
ICU-3389 Improve the ability to generate static libraries on Windows.
X-SVN-Rev: 15074
This commit is contained in:
parent
9417951257
commit
f2747b11ba
2 changed files with 9 additions and 3 deletions
|
@ -7,6 +7,9 @@
|
|||
GEN_DEPS.c= $(CC) -E -MM $(DEFS) $(CPPFLAGS)
|
||||
GEN_DEPS.cc= $(CXX) -E -MM $(DEFS) $(CPPFLAGS)
|
||||
|
||||
## Flags to create a static library
|
||||
STATICCPPFLAGS = -DU_STATIC_IMPLEMENTATION
|
||||
|
||||
## Flags for position independent code
|
||||
SHAREDLIBCFLAGS =
|
||||
SHAREDLIBCXXFLAGS =
|
||||
|
@ -30,7 +33,7 @@ LD_SONAME =
|
|||
## Shared object suffix
|
||||
SO = dll
|
||||
## Non-shared intermediate object suffix
|
||||
STATIC_O = o
|
||||
STATIC_O = ao
|
||||
#LIBICU = $(ICUPREFIX)
|
||||
|
||||
# Change the stubnames so that poorly working FAT disks and installation programs can work.
|
||||
|
|
|
@ -9,6 +9,9 @@ GEN_DEPS.cc= :
|
|||
#GEN_DEPS.c= $(COMPILE.c) /E
|
||||
#GEN_DEPS.cc= $(COMPILE.cc) /E
|
||||
|
||||
## Flags to create a static library
|
||||
STATICCPPFLAGS = -DU_STATIC_IMPLEMENTATION
|
||||
|
||||
## Flags for position independent code
|
||||
SHAREDLIBCFLAGS =
|
||||
SHAREDLIBCXXFLAGS =
|
||||
|
@ -32,7 +35,7 @@ endif
|
|||
CFLAGS += /GF
|
||||
CXXFLAGS += /GF /GX
|
||||
CPPFLAGS+=/nologo
|
||||
DEFS+=/D"WIN32"
|
||||
DEFS+=-DWIN32
|
||||
LDFLAGS+=/nologo
|
||||
|
||||
# Commands to compile
|
||||
|
@ -57,7 +60,7 @@ LD_SONAME = /IMPLIB:$(SO_TARGET:.dll=.lib)
|
|||
## Shared object suffix
|
||||
SO = dll
|
||||
## Non-shared intermediate object suffix
|
||||
STATIC_O = o
|
||||
STATIC_O = ao
|
||||
# OUTOPT is for creating a specific output name
|
||||
OUTOPT = /out:
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue