aboutsummaryrefslogtreecommitdiff
path: root/repos/extra/icu/build.patch
diff options
context:
space:
mode:
Diffstat (limited to 'repos/extra/icu/build.patch')
-rw-r--r--repos/extra/icu/build.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/repos/extra/icu/build.patch b/repos/extra/icu/build.patch
new file mode 100644
index 00000000..c459b725
--- /dev/null
+++ b/repos/extra/icu/build.patch
@@ -0,0 +1,37 @@
+--- a/source/common/putil.cpp
++++ b/source/common/putil.cpp
+@@ -39,6 +39,8 @@
+ ******************************************************************************
+ */
+
++#define ICU_DATA_DIR "/usr/share/icu/76.1"
++
+ // Defines _XOPEN_SOURCE for access to POSIX functions.
+ // Must be before any other #includes.
+ #include "uposixdefs.h"
+--- a/source/config/mh-linux
++++ b/source/config/mh-linux
+@@ -23,7 +23,7 @@ LD_RPATH= -Wl,-zorigin,-rpath,'$$'ORIGIN
+ LD_RPATH_PRE = -Wl,-rpath,
+
+ ## These are the library specific LDFLAGS
+-LDFLAGSICUDT=-nodefaultlibs -nostdlib
++LDFLAGSICUDT=-nodefaultlibs
+
+ ## Compiler switch to embed a library name
+ # The initial tab in the next line is to prevent icu-config from reading it.
+--- a/source/configure
++++ b/source/configure
+@@ -7210,10 +7210,10 @@ fi
+
+ if test "$ac_cv_header_xlocale_h" = yes; then
+ U_HAVE_XLOCALE_H=1
+- CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_STRTOD_L=1 -DU_HAVE_XLOCALE_H=1"
++ CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_STRTOD_L=0 -DU_HAVE_XLOCALE_H=1"
+ else
+ U_HAVE_XLOCALE_H=0
+- CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_STRTOD_L=1 -DU_HAVE_XLOCALE_H=0"
++ CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_STRTOD_L=0 -DU_HAVE_XLOCALE_H=0"
+ fi
+ else
+ CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_STRTOD_L=0"