mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-13 08:53:20 +00:00
ICU-5527 improve tzcode compilation
X-SVN-Rev: 22504
This commit is contained in:
parent
281135ffbb
commit
25828bbf0e
2 changed files with 5 additions and 2 deletions
icu4c/source
|
@ -81,4 +81,7 @@ MIDDLE_SO_TARGET= $(basename $(SO_TARGET)).$(SO_TARGET_VERSION_MAJOR).$(SO)
|
|||
%.$(SO): %.$(SO_TARGET_VERSION_MAJOR).$(SO)
|
||||
$(RM) $@ && ln -s ${*F}.$(SO_TARGET_VERSION).$(SO) $@
|
||||
|
||||
# tzcode option
|
||||
TZORIG_EXTRA_CFLAGS=-DSTD_INSPIRED
|
||||
|
||||
## End Darwin-specific setup
|
||||
|
|
|
@ -17,7 +17,7 @@ TZORIG=./tzorig
|
|||
TZORIG_TZDIR=./tzorig/tzdir
|
||||
TZORIG_ABS := $(shell pwd)/tzorig
|
||||
TZORIG_TZDIR_ABS := $(TZORIG_ABS)/tzdir
|
||||
TZORIG_OPTS := CFLAGS=-D_POSIX_C_SOURCE TZDIR=$(TZORIG_TZDIR_ABS)
|
||||
TZORIG_OPTS := CFLAGS="-D_POSIX_C_SOURCE $(TZORIG_EXTRA_CFLAGS)" TZDIR=$(TZORIG_TZDIR_ABS)
|
||||
|
||||
|
||||
## Options for building zdumps
|
||||
|
@ -104,7 +104,7 @@ XDATA=zone.tab yearistype.sh leapseconds iso3166.tab
|
|||
ICUDATA=ZoneMetaData.java icu_zone.txt tz2icu zoneinfo.txt
|
||||
|
||||
zic: $(OBJECTS) yearistype $(srcdir)/tz2icu.h
|
||||
$(CC) $(CFLAGS) $(LFLAGS) -I$(srcdir) $(OBJECTS) $(LDLIBS) -o $@
|
||||
$(CC) $(CFLAGS) $(TZORIG_EXTRA_CFLAGS) $(LFLAGS) -I$(srcdir) $(OBJECTS) $(LDLIBS) -o $@
|
||||
|
||||
tz2icu: $(srcdir)/tz2icu.cpp $(srcdir)/tz2icu.h
|
||||
$(CXX) -W -Wall -I$(srcdir) -I$(top_srcdir)/common -pedantic $(srcdir)/tz2icu.cpp -o $@
|
||||
|
|
Loading…
Add table
Reference in a new issue