@@ -77,12 +77,18 @@ cd $BUILDDIR/$ARCH
77
77
78
78
# =========== libicuXX.so ===========
79
79
80
- [ -e libicuuc.so ] || {
80
+ [ -e libicuuc$LIBSUFFIX .so ] || {
81
81
82
82
[ -e ../icu4c-55_1-src.tgz ] || exit 1
83
83
84
84
tar xvf ../icu4c-55_1-src.tgz
85
85
86
+ # The ENVVAR LIBSUFFIX should add the suffix only to the libname and not to the symbols.
87
+ # ToDo: Find the right way in Swift to refer to an alternative library with symbol prefixing or any other method to remove this.
88
+ if $[ -n " $LIBSUFFIX " ]; then
89
+ patch -p0 < ../patches/icu_suffix_only_on_libname.patch
90
+ fi
91
+
86
92
cd icu/source
87
93
88
94
# cp -f $BUILDDIR/config.sub .
@@ -104,6 +110,7 @@ cd $BUILDDIR/$ARCH
104
110
./configure \
105
111
--host=arm-linux-androideabi \
106
112
--prefix=` pwd` /../../ \
113
+ --with-library-suffix=$LIBSUFFIX \
107
114
--with-cross-build=` pwd` /cross \
108
115
--enable-static --enable-shared \
109
116
|| exit 1
@@ -119,7 +126,7 @@ cd $BUILDDIR/$ARCH
119
126
$BUILDDIR /setCrossEnvironment-$ARCH .sh \
120
127
make V=1 install || exit 1
121
128
122
- for f in libicudata libicutest libicui18n libicuio libicule libiculx libicutu libicuuc; do
129
+ for f in libicudata$LIBSUFFIX libicutest$LIBSUFFIX libicui18n$LIBSUFFIX libicuio$LIBSUFFIX libicule$LIBSUFFIX libiculx$LIBSUFFIX libicutu$LIBSUFFIX libicuuc$LIBSUFFIX ; do
123
130
cp -f -H ../../lib/$f .so ../../
124
131
cp -f ../../lib/$f .a ../../
125
132
$BUILDDIR /setCrossEnvironment-$ARCH .sh \
0 commit comments