Skip to content

Commit

Permalink
[libc] Add instructions for linux headers
Browse files Browse the repository at this point in the history
Reviewed By: sivachandra

Differential Revision: https://reviews.llvm.org/D146049
  • Loading branch information
kaladron committed Mar 15, 2023
1 parent b38aa29 commit 1b89aeb
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions libc/docs/full_host_build.rst
Expand Up @@ -95,8 +95,17 @@ Linux Headers
=============

If you are using the full libc on Linux, then you will also need to install
Linux headers in your sysroot. It is left to the reader to figure out the best
way to install Linux headers on the system they want to use the full libc on.
Linux headers in your sysroot. The way to do this varies per system.

These instructions should work on a Debian-based x86_64 system:

.. code-block:: sh
$> apt download linux-libc-dev
$> dpkg -x linux-libc-dev*deb .
$> mv usr/include/* /path/to/sysroot/include
$> rm -rf usr linux-libc-dev*deb
$> ln -s x86_64-linux-gnu/asm ~/Programming/sysroot/include/asm
Using your newly built libc
===========================
Expand Down

0 comments on commit 1b89aeb

Please sign in to comment.