summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2012-12-27 19:23:04 +0200
committerTor Lillqvist <tml@iki.fi>2012-12-27 19:23:04 +0200
commit879f3aa79f524658f0698717e3eef5c361310531 (patch)
treebb31cfe26e566945349ed95e5fbb224a11f46016 /Makefile.in
parentb3c6ae8f5022b5f600043857151c1aff3b6a01ba (diff)
Fix icu cross-compilation
We need to pass the location of the icu build root for the BUILD platform with the --with-cross-build option when configuring icu for cross-compilation (to the HOST platform). I.e. we always need to build it for the BUILD platform. Surely this could be done in a more elegant way, but I got lost in the mess, and just hacked it in the cross-toolset rule in Makefile.in. Change-Id: Ia5e9d13d01067c6dded1fdc86c56f8f39aae6bc8
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile.in b/Makefile.in
index d4d4b9f465e5..2a56db0ae489 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -292,7 +292,13 @@ build-nocheck : export SKIP_TESTS := YES
build-nocheck : build
cross-toolset: bootstrap fetch
+# We need to build icu for the build platform, as building icu for the host
+# platform requires tools built as part of icu that can run on the build
+# platform. see --with-cross-build in icu/ExternalProject_icu.mk
+ $(GNUMAKE) gb_Side=build icu
+#
cd cross_toolset && $(GNUMAKE) -j $(PARALLELISM) $(GMAKE_OPTIONS)
+#
ifneq (,$(filter DESKTOP,$(BUILD_TYPE)))
ifneq (WNT,$(OS))
# We need to build nss for nsinstall... See NSINSTALL=... in nss/makefile.mk