| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | $NetBSD: README.mknative,v 1.11 2012/09/25 06:55:10 skrll Exp $ | | 1 | $NetBSD: README.mknative,v 1.12 2012/09/25 11:12:16 skrll Exp $ |
2 | | | 2 | |
3 | This file describes how to bootstrap the native toolchain on a new NetBSD | | 3 | This file describes how to bootstrap the native toolchain on a new NetBSD |
4 | platform (and how to update the new toolchain files, if needed). These | | 4 | platform (and how to update the new toolchain files, if needed). These |
5 | files may be generated on a cross-compile host without problems. | | 5 | files may be generated on a cross-compile host without problems. |
6 | | | 6 | |
7 | NOTE: DO NOT RUN "mknative" BY HAND! It requires the Makefile in this | | 7 | NOTE: DO NOT RUN "mknative" BY HAND! It requires the Makefile in this |
8 | directory to set up certain environments first. | | 8 | directory to set up certain environments first. |
9 | | | 9 | |
10 | Since libc's features change over time, the config.h files can change as a | | 10 | Since libc's features change over time, the config.h files can change as a |
11 | result; thus the instructions below are the same no matter whether | | 11 | result; thus the instructions below are the same no matter whether |
12 | bootstrapping on a cross or native host. This is important: even on a | | 12 | bootstrapping on a cross or native host. This is important: even on a |
13 | "native" host, you should bootstrap the toolchain by building from an | | 13 | "native" host, you should bootstrap the toolchain by building from an |
14 | up-to-date source tree to a $DESTDIR using the exact same instructions. | | 14 | up-to-date source tree to a $DESTDIR using the exact same instructions. |
| @@ -38,27 +38,27 @@ work. | | | @@ -38,27 +38,27 @@ work. |
38 | 5. In src/external/gpl3/gcc/lib/libgcc, do | | 38 | 5. In src/external/gpl3/gcc/lib/libgcc, do |
39 | "nbmake-MACHINE obj includes dependall install MKPIC=no". | | 39 | "nbmake-MACHINE obj includes dependall install MKPIC=no". |
40 | | | 40 | |
41 | 6. If the platform sets USE_COMPILERCRTSTUFF=yes, then in | | 41 | 6. If the platform sets USE_COMPILERCRTSTUFF=yes, then in |
42 | src/external/gpl3/gcc/lib/crtstuff/ do | | 42 | src/external/gpl3/gcc/lib/crtstuff/ do |
43 | "nbmake-MACHINE obj dependall install" | | 43 | "nbmake-MACHINE obj dependall install" |
44 | | | 44 | |
45 | 7. In src/lib/csu, do | | 45 | 7. In src/lib/csu, do |
46 | "nbmake-MACHINE obj includes dependall install". | | 46 | "nbmake-MACHINE obj includes dependall install". |
47 | | | 47 | |
48 | 8. In each of src/external/lgpl3/gmp/lib/libgmp, | | 48 | 8. In each of src/external/lgpl3/gmp/lib/libgmp, |
49 | src/external/lgpl3/mpfr/lib/libmpfr, src/external/lgpl2/mpc/lib/libmpc | | 49 | src/external/lgpl3/mpfr/lib/libmpfr, src/external/lgpl2/mpc/lib/libmpc |
50 | do "nbmake-MACHINE obj includes LIBISPRIVATE=no", and | | 50 | do "nbmake-MACHINE obj includes LIBISPRIVATE=no", and |
51 | "nbmake-MACHINE obj includes dependall install". | | 51 | "nbmake-MACHINE dependall install". |
52 | | | 52 | |
53 | It is important to have LIBISPRIVATE=no while doing includes as this | | 53 | It is important to have LIBISPRIVATE=no while doing includes as this |
54 | installs a header file that is not part of standard build. | | 54 | installs a header file that is not part of standard build. |
55 | | | 55 | |
56 | 9. In src/lib, do | | 56 | 9. In src/lib, do |
57 | "nbmake-MACHINE obj includes dependall install MKGCC=no". | | 57 | "nbmake-MACHINE obj includes dependall install MKGCC=no". |
58 | | | 58 | |
59 | Optionally, all of the following may be set in the environment to reduce | | 59 | Optionally, all of the following may be set in the environment to reduce |
60 | the amount of code needed to build at this step. Basically, it must be | | 60 | the amount of code needed to build at this step. Basically, it must be |
61 | possible for static binaries to build and base system libs to exist so | | 61 | possible for static binaries to build and base system libs to exist so |
62 | that "configure" can do its job for the target--these MK* options omit | | 62 | that "configure" can do its job for the target--these MK* options omit |
63 | the rest for this stage of the build. | | 63 | the rest for this stage of the build. |
64 | | | 64 | |