summaryrefslogtreecommitdiff
path: root/Build/source/README.cross
blob: a4be3620e088ac86eb6b17dc342adf25f6cd25ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
Copyright (C) 2009, 2010 Peter Breitenlohner <tex-live@tug.org>
You may freely use, modify and/or distribute this file.

	Cross compiling
	===============

In order to build the TL libraries and programs for a HOST system, e.g.,
i386-pc-mingw32 on a (different) BUILD system, e.g, x86_64-linux-gnu specify
the configure options
	--host=i386-pc-mingw32 --build=x86_64-linux-gnu

You should have `cross' tools properly installed as, e.g.,
i386-pc-mingw32-cc in your PATH or specify them as configure arguments,
e.g., CC=<mingw32-cross-compiler>; arguments such as CFLAGS=...  refer to
this cross compiler.  Here a preliminary list of such tools and
corresponding variables:
	ar		AR
	freetype-config	FT2_CONFIG
	g++		CXX
	gcc		CC
	icu-config	ICU_CONFIG
	objdump		OBJDUMP
	pkg-config	PKG_CONFIG
	ranlib		RANLIB
	strip		STRIP

If necessary, you can specify compilers and flags for the few auxiliary C
and C++ programs required for the build process as configure arguments
	BUILDCC=...
	BUILDCPPFLAGS=...
	BUILDCFLAGS=...
	BUILDCXX=...
	BUILDCXXFLAGS=...
	BUILDLDFLAGS=...

Building the Web2C programs requires sufficiently recent installed versions
of tangle, ctangle, and tie (and possibly otangle).