icu: fix cross build.
This commit is contained in:
parent
13c04df41d
commit
9e6cb6cf82
|
@ -21,6 +21,7 @@ pre_configure() {
|
||||||
if [ "$CROSS_BUILD" ]; then
|
if [ "$CROSS_BUILD" ]; then
|
||||||
# Configure and build for host.
|
# Configure and build for host.
|
||||||
mkdir host-build
|
mkdir host-build
|
||||||
|
(
|
||||||
cd host-build
|
cd host-build
|
||||||
env CC=cc LD=ld CXX=g++ AR=ar RANLIB=ranlib \
|
env CC=cc LD=ld CXX=g++ AR=ar RANLIB=ranlib \
|
||||||
AS=as STRIP=strip CFLAGS="-Os" CXXFLAGS="-Os" \
|
AS=as STRIP=strip CFLAGS="-Os" CXXFLAGS="-Os" \
|
||||||
|
@ -31,6 +32,7 @@ pre_configure() {
|
||||||
make DESTDIR=${wrksrc}/host-icu install
|
make DESTDIR=${wrksrc}/host-icu install
|
||||||
mv ${wrksrc}/host-icu/sbin/* ${wrksrc}/host-icu/bin
|
mv ${wrksrc}/host-icu/sbin/* ${wrksrc}/host-icu/bin
|
||||||
make distclean
|
make distclean
|
||||||
|
)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# libicudata must be linked to libc, otherwise it's soft-float on ARM.
|
# libicudata must be linked to libc, otherwise it's soft-float on ARM.
|
||||||
|
|
Loading…
Reference in New Issue