summaryrefslogtreecommitdiff
path: root/icu
diff options
context:
space:
mode:
authorJonathan Adams <t12nslookup@gmail.com>2012-06-21 21:58:21 +0200
committerMichael Stahl <mstahl@redhat.com>2012-06-21 22:16:50 +0200
commit850e9faa2db7002c9eb2797178ae837bff08327f (patch)
treef8dfa88c824bc2e0586af1d054a2ef680fd4987d /icu
parentec5fa0164b9bae5c5bc6654f581e493206584301 (diff)
icu: add patch for Solaris/GCC
Change-Id: I070b878b9275884e1ad0db3bb07483a3451682fb
Diffstat (limited to 'icu')
-rw-r--r--icu/icu4c-solarisgcc.patch58
-rw-r--r--icu/makefile.mk1
2 files changed, 59 insertions, 0 deletions
diff --git a/icu/icu4c-solarisgcc.patch b/icu/icu4c-solarisgcc.patch
new file mode 100644
index 000000000000..d61ad3278294
--- /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 d6a73f9312a8..f65481adc8da 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+=\