summaryrefslogtreecommitdiff
path: root/Meta/BuildInstructions.md
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-04-05 03:58:16 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-04-05 03:58:16 +0200
commitdd966c03c9f8931d48cc724fad053b5d610c3fd9 (patch)
treeabd49a83d0ed7be810d32a67661db0f42e4ba635 /Meta/BuildInstructions.md
parent667b4ad13b97986a35b094d6cdc7dbdd712bc265 (diff)
downloadserenity-dd966c03c9f8931d48cc724fad053b5d610c3fd9.zip
Meta: Add build instructions about LibM headers.
Diffstat (limited to 'Meta/BuildInstructions.md')
-rw-r--r--Meta/BuildInstructions.md13
1 files changed, 8 insertions, 5 deletions
diff --git a/Meta/BuildInstructions.md b/Meta/BuildInstructions.md
index 8cd7844574..4d9802a56f 100644
--- a/Meta/BuildInstructions.md
+++ b/Meta/BuildInstructions.md
@@ -14,7 +14,6 @@ For Serenity, we will need nasm, e2fsprogs and QEMU:
sudo apt install nasm e2fsprogs qemu-system-i386
-
## Binutils:
Download GNU binutils-2.32 and apply the patch serenity/Meta/binutils-2.32-serenity.patch
@@ -35,13 +34,17 @@ Then build and install:
make
sudo make install
-## Serenity LibC (part 1):
+## Serenity LibC and LibM headers:
Before we can build GCC, we need to put the Serenity LibC headers where GCC can find them. So go into serenity/LibC/ and install them:
./install.sh
-Don't worry about any error messages from the above command. We only care about copying the headers to the right place at this time.
+Then do the same in serenity/LibM/:
+
+ ./install.sh
+
+Don't worry about any error messages from the above commands. We only care about copying the headers to the right place at this time.
## GCC (part 1):
@@ -64,7 +67,7 @@ Then build and install:
make all-gcc all-target-libgcc
sudo make install-gcc install-target-libgcc
-## Serenity LibC (part 2):
+## Serenity LibC for GCC:
Now let's go into serenity/LibC/ and build the C library. This is required in order to complete the GCC build.
@@ -80,7 +83,7 @@ Go back to the GCC build directory and finish building libstdc++:
make all-target-libstdc++-v3
sudo make install-target-libstdc++-v3
-## Serenity
+## Serenity (Full build)
If everything worked out, you now have the i686-pc-serenity toolchain ready and we can build Serenity.