ICU-8157 update with compile opts

X-SVN-Rev: 30322
This commit is contained in:
Steven R. Loomis 2011-07-13 02:13:38 +00:00
parent 9dda74b4b1
commit 735a9c77c0
2 changed files with 24 additions and 15 deletions

View file

@ -283,7 +283,7 @@ $(BUILD)/%/config.status: $(SRC)/%/ok
@echo "Configging" $*
-[ -d $(BUILD)/$* ] && rm -rf $(BUILD)/$*
mkdir -p $(BUILD)/$*
( cd $(BUILD)/$* && env CFLAGS=$(PBLD_EXTRA_FLAGS) CXXFLAGS=$(PBLD_EXTRA_FLAGS) $(shell $(SUPERCONF) $(TOP)/$(SRC)/$*/$(SOURCE) $*) $(CONFIGURE_OPTS) --srcdir=$(TOP)/$(SRC)/$*/$(SOURCE) --prefix=$(TOP)/$(INST)/$* )
( cd $(BUILD)/$* && env CFLAGS="$(CFLAGS) $(PBLD_EXTRA_FLAGS)" CXXFLAGS="$(CXXFLAGS) $(PBLD_EXTRA_FLAGS)" $(shell $(SUPERCONF) $(TOP)/$(SRC)/$*/$(SOURCE) $*) $(CONFIGURE_OPTS) --srcdir=$(TOP)/$(SRC)/$*/$(SOURCE) --prefix=$(TOP)/$(INST)/$* )
# build
# note: regex had renaming problems, and spoof depends on regex. Nuke them.

View file

@ -1,18 +1,17 @@
#!/bin/cat
# Copyright (c) 2009-2010 IBM Corp. and Others. All Rights Reserved
# Copyright (c) 2009-2011 IBM Corp. and Others. All Rights Reserved
# ICU Provider Feature. - $Id$
BUILDING:
1a. Download the ICU source (.tgz) you wish to TARGET (i.e. link your application against). This must be in the 4.4. series.
4.4, 4.4.1, and 4.4.2 have been tested. The latest available is recommended (4.4.2 as of this writing).
1b. Download one or more ICUs (.tgz) you wish to have AVAILABLE (via the provider interface). As of this writing, 4.2.0.1, 3.8.1, 3.6, 3.4.1, and 3.2.1 have been tested.
(Known issue: As of this writing, ICU 4.4+,4.5+ etc may NOT be an AVAILABLE locale (it may be a TARGET). )
1a. Download the ICU source (.tgz) you wish to TARGET (i.e. link your
application against). This must be the ICU49 branch
http://source.icu-project.org/repos/icu/icu/branches/srl/ucol8157 at
this writing.
1b. Download one or more ICUs (.tgz) you wish to have AVAILABLE (via
the provider interface). As of this writing, 49, 4.6.x, 4.4.x, 4.2.0.1, 3.8.1, 3.6, 3.4.1, and 3.2.1 have been tested.
Note that the MAJOR+MINOR version numbers must not conflict between the TARGET and AVAILABLE ICUs. Only one ICU of each major+minor is allowed.
So, only one 4.4.X, one 3.8.X, etc. This is due to ICU binary compatibility rules.
@ -20,21 +19,24 @@ BUILDING:
1c. Copy the ICUs (named as they were downloaded) into the ../../packages/ directory relative to this readme.
2a. Copy the file "Makefile-local.sample" into a new file "Makefile.local".
2b. Edit the Makefile.local to modify the PROVIDER_TARGET and PROVIDER_AVAILABLE settings.
2b. Edit the Makefile.local to modify the PROVIDER_TARGET and
PROVIDER_AVAILABLE settings.
Note that if you have a special installation of the current ICU
(ICU 49) that you want to be the target, you can set PLUGLIB_INST
to the installed ICU path. You must still set PROVIDER_TARGET.
3. Check the makefile settings by running 'make info', you should see output similar to the following:
ICU Provider Build
Targetting Provider against ICU 4.4.2 (4_4_2, major 44)
Available plugins: 3.8.1 4.2.0.1 (3_8_1 4_2_0_1)
Targetting Provider against ICU 49 (49, major 49)
Available plugins: 3.8.1 4.2.0.1 (3_8_1 4_2_0_1)
Available keywords:
...@provider=icu38
...@provider=icu42
Plugin library will be libicuprov.44.so
Plugin library will be libicuprov.49.so
Available ICU tarballs: icu4c-3_8_1-src.tgz icu4c-4_2_0_1-src.tgz icu4c-4_4_2-src.tgz
Available ICU versions: 3.8.1 4.2.0.1 4.4.2
@ -42,7 +44,10 @@ BUILDING:
The last two lines show which ICU .tgz files are available. If a version is not listed, make sure the filename is as above.
4. Now, you are ready to build and test:
4. Now, you are ready to build and test.
(Note: you can set the variables CC, CXX, CXXFLAGS, and CFLAGS to set
the compiler options. )
make check
@ -64,3 +69,7 @@ USING:
Collators opened with an id such as that shown in 'make info', such as 'en_US@provider=icu38' will load, for example, an ICU 3.8 collator.
Date Formats opened (udat_open) will also load a different date
format, but only through 'udat_open'.