From 8cad46b135ea1f35bc6f7c94cc661a11adc9a349 Mon Sep 17 00:00:00 2001 From: Tony Theodore Date: Fri, 24 May 2013 23:56:40 +1000 Subject: package icu4c: fix for gmake 3.82 strangeness --- src/icu4c-1-fixes.patch | 51 +++++++++++++++++++++++++++++++++++++++++++++++++ src/icu4c.mk | 3 +-- 2 files changed, 52 insertions(+), 2 deletions(-) create mode 100644 src/icu4c-1-fixes.patch diff --git a/src/icu4c-1-fixes.patch b/src/icu4c-1-fixes.patch new file mode 100644 index 0000000..7874fc1 --- /dev/null +++ b/src/icu4c-1-fixes.patch @@ -0,0 +1,51 @@ +This file is part of MXE. +See index.html for further information. + +Contains ad hoc patches for cross building. + +From a091ad517752ea98dd9ae471997c15d61b0f8559 Mon Sep 17 00:00:00 2001 +From: MXE +Date: Fri, 24 May 2013 23:44:41 +1000 +Subject: [PATCH] fixes for static cross-build + + +diff --git a/source/config/icu.pc.in b/source/config/icu.pc.in +index 406b196..cc53055 100644 +--- a/source/config/icu.pc.in ++++ b/source/config/icu.pc.in +@@ -5,7 +5,7 @@ exec_prefix = @exec_prefix@ + #bindir = @bindir@ + libdir = @libdir@ + includedir = @includedir@ +-baselibs = @LIBS@ ++baselibs = @LIBS@ -lstdc++ + #datarootdir = @datarootdir@ + #datadir = @datadir@ + #sbindir = @sbindir@ +diff --git a/source/config/mh-mingw b/source/config/mh-mingw +index eb25c8a..11ea464 100644 +--- a/source/config/mh-mingw ++++ b/source/config/mh-mingw +@@ -72,7 +72,6 @@ A = a + ## An import library is needed for z/OS and MSVC + IMPORT_LIB_EXT = .lib + +-LIBPREFIX= + + # Change the stubnames so that poorly working FAT disks and installation programs can work. + # This is also for backwards compatibility. +diff --git a/source/config/mh-mingw64 b/source/config/mh-mingw64 +index 1b37f29..3c7ae7f 100644 +--- a/source/config/mh-mingw64 ++++ b/source/config/mh-mingw64 +@@ -72,7 +72,6 @@ A = a + ## An import library is needed for z/OS and MSVC + IMPORT_LIB_EXT = .lib + +-LIBPREFIX= + + # Change the stubnames so that poorly working FAT disks and installation programs can work. + # This is also for backwards compatibility. +-- +1.8.2.2 + diff --git a/src/icu4c.mk b/src/icu4c.mk index b1f7c04..81bbc1d 100644 --- a/src/icu4c.mk +++ b/src/icu4c.mk @@ -19,7 +19,6 @@ define $(PKG)_BUILD CC=gcc CXX=g++ $(MAKE) -C '$(1).native' -j '$(JOBS)' - $(SED) -i 's,\(baselibs.*\),\1 -lstdc++,' '$(1)/source/config/icu.pc.in' mkdir '$(1).cross' && cd '$(1).cross' && '$(1)/source/configure' \ --host='$(TARGET)' \ --build="`config.guess`" \ @@ -30,7 +29,7 @@ define $(PKG)_BUILD CFLAGS=-DU_USING_ICU_NAMESPACE=0 \ SHELL=bash - $(MAKE) -C '$(1).cross' -j '$(JOBS)' install LIBPREFIX=lib + $(MAKE) -C '$(1).cross' -j '$(JOBS)' install ln -sf '$(PREFIX)/$(TARGET)/bin/icu-config' '$(PREFIX)/bin/$(TARGET)-icu-config' # Static libs are prefixed with an `s` but the config script -- cgit v0.12