[Libreoffice-commits] .: icu/icu4c-strict-c.patch icu/makefile.mk
Jan Holesovsky
kendy at kemper.freedesktop.org
Fri Aug 19 09:43:37 PDT 2011
icu/icu4c-strict-c.patch | 11 +++++++++++
icu/makefile.mk | 13 +++++++++++--
2 files changed, 22 insertions(+), 2 deletions(-)
New commits:
commit 67f762250276aeaa65b5d96de0e12d45093b947d
Author: Jan Holesovsky <kendy at suse.cz>
Date: Fri Aug 19 18:42:20 2011 +0200
Fix some icu cross-building problems.
Still it does not finish, though; to be continued.
diff --git a/icu/icu4c-strict-c.patch b/icu/icu4c-strict-c.patch
new file mode 100644
index 0000000..0f1ff9a
--- /dev/null
+++ b/icu/icu4c-strict-c.patch
@@ -0,0 +1,11 @@
+--- misc/build/icu/source/common/wintz.c.orig 2011-08-19 17:13:10.000000000 +0200
++++ misc/build/icu/source/common/wintz.c 2011-08-19 17:13:35.000000000 +0200
+@@ -113,7 +113,7 @@ static int32_t detectWindowsType()
+ }
+ }
+
+- return winType+1; // +1 to bring it inline with the enum
++ return winType+1; /* +1 to bring it inline with the enum */
+ }
+
+ static LONG openTZRegKey(HKEY *hkey, const char *winid)
diff --git a/icu/makefile.mk b/icu/makefile.mk
index 42ca838..41916b4 100644
--- a/icu/makefile.mk
+++ b/icu/makefile.mk
@@ -51,7 +51,8 @@ PATCH_FILES=\
icu4c-aix.patch \
icu4c-4_4_2-wchar_t.patch \
icu4c-warnings.patch \
- icu4c-escapespace.patch
+ icu4c-escapespace.patch \
+ icu4c-strict-c.patch
.IF "$(GUI)"=="UNX"
@@ -187,8 +188,16 @@ icu_LIBS=
icu_LIBS+=$(MINGW_SHARED_LIBSTDCPP)
.ENDIF
icu_LDFLAGS+=-Wl,--enable-runtime-pseudo-reloc-v2
+
+.IF "$(CROSS_COMPILING)"=="YES"
+# We require that the cross-build-toolset target from the top Makefile(.in) has bee built
+BUILD_AND_HOST=--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM) --with-cross-build=$(posix_PWD)/$(INPATH_FOR_BUILD)/misc/build/icu/source
+.ELSE
+BUILD_AND_HOST=--build=i586-pc-mingw32 --enable-64bit-libs=no
+.ENDIF
+
CONFIGURE_ACTION+=sh -c 'CFLAGS="-O -D_MT" CXXFLAGS="-O -D_MT" LDFLAGS="$(icu_LDFLAGS)" LIBS="$(icu_LIBS)" \
-./configure --build=i586-pc-mingw32 --enable-layout --disable-static --enable-shared --enable-64bit-libs=no'
+./configure $(BUILD_AND_HOST) --enable-layout --disable-static --enable-shared'
CONFIGURE_FLAGS=
More information about the Libreoffice-commits
mailing list