mirror of
https://github.com/cfenollosa/os-tutorial.git
synced 2024-10-27 20:34:19 +00:00
Add instructions on installing the cross-compiler using package managers
This commit is contained in:
parent
7aff64740e
commit
37a2629b74
@ -9,11 +9,21 @@ language, that is, C. [Read why](http://wiki.osdev.org/Why_do_I_need_a_Cross_Com
|
|||||||
I'll be adapting the instructions [at the OSDev wiki](http://wiki.osdev.org/GCC_Cross-Compiler).
|
I'll be adapting the instructions [at the OSDev wiki](http://wiki.osdev.org/GCC_Cross-Compiler).
|
||||||
|
|
||||||
|
|
||||||
|
Using a package manager
|
||||||
|
-----------------------
|
||||||
|
|
||||||
|
On some systems, the cross-compiler can be installed by a package manager.
|
||||||
|
|
||||||
|
On Linux, use your package manager to install `gcc`. On a Mac, [install Homebrew](http://brew.sh/)
|
||||||
|
if you didn't do it on lesson 00, and then `brew install i386-elf-gcc`
|
||||||
|
|
||||||
|
If this doesn't work, you may need to build the cross-compiler yourself.
|
||||||
|
|
||||||
|
|
||||||
Required packages
|
Required packages
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
First, install the required packages. On linux, use your package distribution. On a Mac, [install brew](http://brew.sh/) if
|
First, install the required packages.
|
||||||
you didn't do it on lesson 00, and get those packages with `brew install`
|
|
||||||
|
|
||||||
- gmp
|
- gmp
|
||||||
- mpfr
|
- mpfr
|
||||||
|
Loading…
Reference in New Issue
Block a user