summaryrefslogtreecommitdiff
path: root/Build/source/libs/icu/icu-4.6-PATCHES/patch-11-CURR_FULL_DIR
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/libs/icu/icu-4.6-PATCHES/patch-11-CURR_FULL_DIR')
-rw-r--r--Build/source/libs/icu/icu-4.6-PATCHES/patch-11-CURR_FULL_DIR24
1 files changed, 24 insertions, 0 deletions
diff --git a/Build/source/libs/icu/icu-4.6-PATCHES/patch-11-CURR_FULL_DIR b/Build/source/libs/icu/icu-4.6-PATCHES/patch-11-CURR_FULL_DIR
new file mode 100644
index 00000000000..9cc86d81670
--- /dev/null
+++ b/Build/source/libs/icu/icu-4.6-PATCHES/patch-11-CURR_FULL_DIR
@@ -0,0 +1,24 @@
+ For a cross compilation Unix => mingw we certainly can't have this.
+ This is just a minimal fix to build static libraries, but certainly
+ not sufficient for icu-config.
+
+ The whole scheme is broken for cross compilation, where
+ CURR_FULL_DIR and CURR_SRCCODE_FULL_DIR should come from
+ the native configuration of the build system.
+
+diff -ur icu-4.6.orig/source/config/mh-mingw icu-4.6/source/config/mh-mingw
+--- icu-4.6.orig/source/config/mh-mingw 2009-03-30 18:24:17.000000000 +0200
++++ icu-4.6/source/config/mh-mingw 2010-12-02 15:01:44.000000000 +0100
+@@ -72,10 +72,10 @@
+ # The #M# is used to delete lines for icu-config
+ # Current full path directory.
+ #CURR_FULL_DIR=$(shell pwd -W)#M# for MSYS
+-CURR_FULL_DIR=$(subst \,/,$(shell cmd /c cd))#M# for Cygwin shell
++#CURR_FULL_DIR=$(subst \,/,$(shell cmd /c cd))#M# for Cygwin shell
+ # Current full path directory for use in source code in a -D compiler option.
+ #CURR_SRCCODE_FULL_DIR=$(subst /,\\\\,$(shell pwd -W))#M# for MSYS
+-CURR_SRCCODE_FULL_DIR=$(subst \,/,$(shell cmd /c cd))#M# for Cygwin shell
++#CURR_SRCCODE_FULL_DIR=$(subst \,/,$(shell cmd /c cd))#M# for Cygwin shell
+
+ ## Compilation rules
+ %.$(STATIC_O): $(srcdir)/%.c