From 48dedb04a297c01538b58c5fe7eca6e2bced4f6b Mon Sep 17 00:00:00 2001 From: Ognyan Kulev Date: Mon, 2 Jun 2003 14:12:31 +0000 Subject: none --- Hurd/BuildingHurd.mdwn | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'Hurd') diff --git a/Hurd/BuildingHurd.mdwn b/Hurd/BuildingHurd.mdwn index 740d7822..24eb5aaf 100644 --- a/Hurd/BuildingHurd.mdwn +++ b/Hurd/BuildingHurd.mdwn @@ -1,14 +1,16 @@ -Of course, your first task is to [get the source of the Hurd](http://www.gnu.org/software/hurd/download.html). +Of course, your first task is to [get the source of the Hurd](http://www.gnu.org/software/hurd/download.html). `gcc-3.3` requires CVS snapshot from 2003-05-08 or later. Building the Hurd requires `gcc`, `libc-dev` and `mig` packages: - # apt-get install gcc-3.2 make libc-dev mig + # apt-get install gcc-3.3 make libc-dev mig + +The reason for installing `gcc-3.3` but not just `gcc` is that currently `gcc` package doesn't exist in Debian GNU/Hurd archives. When this changes, so will this page. `libc-dev` will install `libc0.3-dev`, which depends on `gnumach-dev` and `hurd-dev`. The Hurd can be compiled in its directory, like this: - $ ./configure + $ CC=gcc-3.3 ./configure $ make but it's recommended to build it in separate directory because there are too many generated files and it becomes too crowdy in the source directories: @@ -23,6 +25,14 @@ Notice that `make install` will install the Hurd in `/`, not in `/usr/local` or By default profiling versions of all the libraries and code are generated but this is useless in most of the cases, so we disable them. +As an alternative, you can build and install the Hurd in the Debian way (from CVS snapshot): + + # apt-get build-dep hurd + # cd hurd + # dpkg-buildpackage + # cd .. + # dpkg -i hurd_*.deb hurd-dev_*.deb + If you just want to build a specific server or library, you can pass its name to `make`: $ make ext2fs -- cgit v1.2.3