summaryrefslogtreecommitdiffstats
path: root/dev/ports/i686-linux-eglibc-bootstrap.mdwn
blob: 110ecd8f761caca4737504f2d29b4a832d2daa86 (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
[[!meta title="Bootstrap of the i686-linux-eglibc Port"]]

Following is the planned procedure to bootstrap the i686-linux-eglibc port from
a core-linux-eglibc system.

This procedure assumes that all base system and build essential packages are
installed, along with libgmp-dev, libmpfr-dev, and libmpc-dev.

These steps are overly simplified and useful only as a reference.


1. Build a Compiler That Can Build Headers
==========================================

Natively build Binutils with the following architecture specifications:

  * Build arch: core-linux-eglibc
  * Host-arch: core-linux-eglibc
  * Target arch: i686-linux-eglibc

Natively build GCC without building shared libraries and without linking
against libc with the following architecture specifications:

  * Build arch: core-linux-eglibc
  * Host-arch: core-linux-eglibc
  * Target arch: i686-linux-eglibc


2. Build Headers
================

Cross build Linux headers with the following architecture specifications:

  * Build arch: core-linux-eglibc
  * Host-arch: i686-linux-eglibc

Cross build EGLIBC headers with the following architecture specifications:

  * Build arch: core-linux-eglibc
  * Host-arch: i686-linux-eglibc


3. Build a Compiler That Can Build a C Library
==============================================

Natively build GCC without building shared libraries with the following
architecture specifications:

  * Build arch: core-linux-eglibc
  * Host-arch: core-linux-eglibc
  * Target arch: i686-linux-eglibc


4. Build a C Library
====================

Cross build EGLIBC with the following architecture specifications:

  * Build arch: core-linux-eglibc
  * Host-arch: i686-linux-eglibc


5. Build a Final Compiler
=========================

Natively build GCC with the following architecture specifications:

  * Build arch: core-linux-eglibc
  * Host-arch: core-linux-eglibc
  * Target arch: i686-linux-eglibc


6. Build Everything for the Target
==================================

Using the new cross toolchain, cross build all packages for i686-linux-eglibc.