[Libreoffice-commits] .: icu/icu4c-solarisgcc.patch icu/makefile.mk

Michael Stahl mst at kemper.freedesktop.org
Thu Jun 21 13:19:19 PDT 2012


 icu/icu4c-solarisgcc.patch |   58 +++++++++++++++++++++++++++++++++++++++++++++
 icu/makefile.mk            |    1 
 2 files changed, 59 insertions(+)

New commits:
commit 850e9faa2db7002c9eb2797178ae837bff08327f
Author: Jonathan Adams <t12nslookup at gmail.com>
Date:   Thu Jun 21 21:58:21 2012 +0200

    icu: add patch for Solaris/GCC
    
    Change-Id: I070b878b9275884e1ad0db3bb07483a3451682fb

diff --git a/icu/icu4c-solarisgcc.patch b/icu/icu4c-solarisgcc.patch
new file mode 100644
index 0000000..d61ad32
--- /dev/null
+++ b/icu/icu4c-solarisgcc.patch
@@ -0,0 +1,58 @@
+diff -uriwb misc/build/icu.old/source/aclocal.m4 misc/build/icu/source/aclocal.m4
+--- misc/build/icu.old/source/aclocal.m4	2012-04-05 21:49:28.000000000 +0100
++++ misc/build/icu/source/aclocal.m4	2012-06-21 15:44:57.299256932 +0100
+@@ -455,7 +455,7 @@
+             case "${host}" in
+             *-*-solaris*)
+                 CFLAGS="$CFLAGS -Wall -ansi -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Wno-long-long"
+-                CFLAGS="$CFLAGS -D__STDC__=0";;
++                CFLAGS="$CFLAGS -std=c99";;
+             *-*-hpux*)
+                 echo "# Note: We are not using '-ansi' with HP/UX GCC because int64_t broke, see <http://bugs.icu-project.org/trac/ticket/8493>"
+                 CFLAGS="$CFLAGS -Wall -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Wno-long-long";;
+@@ -474,10 +474,6 @@
+         if test "$GXX" = yes
+         then
+             CXXFLAGS="$CXXFLAGS -W -Wall -ansi -pedantic -Wpointer-arith -Wwrite-strings -Wno-long-long"
+-            case "${host}" in
+-            *-*-solaris*)
+-                CXXFLAGS="$CXXFLAGS -D__STDC__=0";;
+-            esac
+         else
+             case "${host}" in
+             *-*-cygwin)
+diff -uriwb misc/build/icu.old/source/common/uposixdefs.h misc/build/icu/source/common/uposixdefs.h
+--- misc/build/icu.old/source/common/uposixdefs.h	2012-04-05 21:46:18.000000000 +0100
++++ misc/build/icu/source/common/uposixdefs.h	2012-06-21 15:45:17.613369477 +0100
+@@ -52,7 +52,7 @@
+  *
+  * z/OS needs this definition for timeval and to get usleep.
+  */
+-#if !defined(_XOPEN_SOURCE_EXTENDED)
++#if !defined(_XOPEN_SOURCE_EXTENDED) && (defined(__IBMC__) || defined(__IBMCPP__))
+ #   define _XOPEN_SOURCE_EXTENDED 1
+ #endif
+ 
+diff -uriwb misc/build/icu.old/source/configure misc/build/icu/source/configure
+--- misc/build/icu.old/source/configure	2012-04-05 21:49:28.000000000 +0100
++++ misc/build/icu/source/configure	2012-06-21 15:44:42.817030445 +0100
+@@ -4264,7 +4264,7 @@
+             case "${host}" in
+             *-*-solaris*)
+                 CFLAGS="$CFLAGS -Wall -ansi -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Wno-long-long"
+-                CFLAGS="$CFLAGS -D__STDC__=0";;
++                CFLAGS="$CFLAGS -std=c99";;
+             *-*-hpux*)
+                 echo "# Note: We are not using '-ansi' with HP/UX GCC because int64_t broke, see <http://bugs.icu-project.org/trac/ticket/8493>"
+                 CFLAGS="$CFLAGS -Wall -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Wno-long-long";;
+@@ -4283,10 +4283,6 @@
+         if test "$GXX" = yes
+         then
+             CXXFLAGS="$CXXFLAGS -W -Wall -ansi -pedantic -Wpointer-arith -Wwrite-strings -Wno-long-long"
+-            case "${host}" in
+-            *-*-solaris*)
+-                CXXFLAGS="$CXXFLAGS -D__STDC__=0";;
+-            esac
+         else
+             case "${host}" in
+             *-*-cygwin)
diff --git a/icu/makefile.mk b/icu/makefile.mk
index d6a73f9..f65481a 100644
--- a/icu/makefile.mk
+++ b/icu/makefile.mk
@@ -51,6 +51,7 @@ PATCH_FILES=\
     icu4c.9313.cygwin.patch \
     icu4c-macosx.patch \
     icu4c-interlck.patch \
+    icu4c-solarisgcc.patch \
 
 .IF "$(OS)"=="ANDROID"
 PATCH_FILES+=\


More information about the Libreoffice-commits mailing list