Skip to content

Commit 12c882d

Browse files
author
deadwood
committed
Place output of build in TOOLDIR
TOOLDIR is specific to build, while CROSSTOOLSDIR can point to a shared, external crosscompiler which then gets polluted with one builds output, preventing another build to function.
1 parent 6a0a548 commit 12c882d

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

tools/icu4c/mmakefile.src

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ ICU_PKGNAME := icu4c
99
ICU_PKGVERSION=$(subst .,_,$(ICU_VERSION))
1010

1111
ICU_EXTRA_OPTS = \
12-
--bindir=$(CROSSTOOLSDIR) \
13-
--sbindir=$(CROSSTOOLSDIR) \
12+
--bindir=$(TOOLDIR) \
13+
--sbindir=$(TOOLDIR) \
1414
--enable-static \
1515
--disable-strict \
1616
--disable-dyload \
@@ -22,23 +22,23 @@ ICU_EXTRA_OPTS = \
2222

2323
ICU_REPOSITORY := https://github.com/unicode-org/icu/releases/download/release-$(ICU_MAJOR)-$(ISU_MINOR)
2424

25-
icu-installflag := $(CROSSTOOLSDIR)/.installflag-icu-$(ICU_VERSION)
25+
icu-installflag := $(TOOLDIR)/.installflag-icu-$(ICU_VERSION)
2626

2727
#MM
2828
tools-crosstools-icu :
29-
@$(IF) ! $(TEST) -d $(CROSSTOOLSDIR) \
29+
@$(IF) ! $(TEST) -d $(TOOLDIR) \
3030
|| ! $(TEST) -f $(icu-installflag) ; then \
31-
$(RM) $(CROSSTOOLSDIR)/$(ICU_PKGNAME)/.files-touched \
31+
$(RM) $(TOOLDIR)/$(ICU_PKGNAME)/.files-touched \
3232
&& $(MAKE) -f ./mmakefile crosstools-icu--fetch \
3333
&& $(MAKE) -f ./mmakefile crosstools-icu--build_and_install-quick \
3434
&& $(TOUCH) $(icu-installflag) ; \
3535
fi
3636

3737
HOST_CXXFLAGS := $(subst -Wno-pointer-sign,, $(subst -Werror-implicit-function-declaration,, $(HOST_CXXFLAGS)))
3838

39-
# specify the gendir for icu to be in HOSTDIR so it ends up under CROSSTOOLSDIR, and can be reused
39+
# specify the gendir for icu to be in HOSTDIR so can be reused
4040
%fetch_and_build mmake=crosstools-icu package=$(ICU_PKGNAME) version=$(ICU_PKGVERSION)-src compiler=host \
41-
package_repo="$(ICU_REPOSITORY)" suffixes="tgz" \
42-
patch=yes srcdir=icu builddir=source gendir=$(CROSSTOOLSDIR) basedir= \
43-
prefix="$(CROSSTOOLSDIR)" \
41+
package_repo="$(TOOLDIR)" suffixes="tgz" \
42+
patch=yes srcdir=icu builddir=source gendir=$(TOOLDIR) basedir= \
43+
prefix="$(TOOLDIR)" \
4444
extraoptions="$(ICU_EXTRA_OPTS)" extracflags=$(ICU_FLAGS)

0 commit comments

Comments
 (0)