[4d9350d] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?> |
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" |
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [ |
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent"> |
---|
| 5 | %general-entities; |
---|
| 6 | ]> |
---|
| 7 | |
---|
| 8 | <sect1 id="ch-final-system-libc" role="wrap"> |
---|
| 9 | <?dbhtml filename="libc.html"?> |
---|
| 10 | |
---|
| 11 | <title>musl-&musl-version;</title> |
---|
| 12 | |
---|
| 13 | <indexterm zone="ch-final-system-libc"> |
---|
| 14 | <primary sortas="a-libc">musl</primary> |
---|
| 15 | <secondary>final system</secondary> |
---|
| 16 | </indexterm> |
---|
| 17 | |
---|
| 18 | <sect2 role="package"> |
---|
| 19 | <title/> |
---|
| 20 | |
---|
| 21 | <para>The musl package contains the main C library. This library provides |
---|
| 22 | the basic routines for allocating memory, searching directories, opening and |
---|
| 23 | closing files, reading and writing files, string handling, pattern matching, |
---|
| 24 | arithmetic, and so on. We build it again here so that it can be installed |
---|
| 25 | into our targetfs sysroot.</para> |
---|
| 26 | |
---|
| 27 | </sect2> |
---|
| 28 | |
---|
| 29 | <sect2 role="installation"> |
---|
| 30 | <title>Installation of musl</title> |
---|
| 31 | |
---|
| 32 | <para os="h">Configure the package:</para> |
---|
| 33 | |
---|
| 34 | <screen os="i"><userinput>./configure \ |
---|
| 35 | CROSS_COMPILE=${CLFS_TARGET}- \ |
---|
| 36 | --prefix=/ \ |
---|
| 37 | --target=${CLFS_TARGET}</userinput></screen> |
---|
| 38 | |
---|
| 39 | <para os="h">Compile the package:</para> |
---|
| 40 | |
---|
| 41 | <screen os="i"><userinput>make</userinput></screen> |
---|
| 42 | |
---|
| 43 | <para os="l">Install the package:</para> |
---|
| 44 | |
---|
| 45 | <screen os="j"><userinput>DESTDIR=${CLFS}/targetfs make install</userinput></screen> |
---|
| 46 | |
---|
| 47 | </sect2> |
---|
| 48 | |
---|
| 49 | <sect2 role="content"> |
---|
| 50 | <title/> |
---|
| 51 | |
---|
| 52 | <para>Details on this package are located in |
---|
| 53 | <xref linkend="contents-musl" role="."/></para> |
---|
| 54 | |
---|
| 55 | </sect2> |
---|
| 56 | |
---|
| 57 | </sect1> |
---|