[a9e389d] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[bd48e48] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[a9e389d] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
| 7 |
|
---|
[75a0379] | 8 | <sect1 id="ch-cross-tools-libc" role="wrap">
|
---|
| 9 | <?dbhtml filename="libc.html"?>
|
---|
[f9de3a9] | 10 |
|
---|
[75a0379] | 11 | <title>musl-libc-&musl-libc-version;</title>
|
---|
[a9e389d] | 12 |
|
---|
[75a0379] | 13 | <indexterm zone="ch-cross-tools-libc">
|
---|
| 14 | <primary sortas="a-libc">musl-libc</primary>
|
---|
[a9e389d] | 15 | <secondary>cross tools</secondary>
|
---|
| 16 | </indexterm>
|
---|
| 17 |
|
---|
| 18 | <sect2 role="package">
|
---|
| 19 | <title/>
|
---|
| 20 |
|
---|
[75a0379] | 21 | <para>The musl-libc package contains the main C library. This library provides
|
---|
[a9e389d] | 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.</para>
|
---|
| 25 |
|
---|
| 26 | </sect2>
|
---|
| 27 |
|
---|
| 28 | <sect2 role="installation">
|
---|
[75a0379] | 29 | <title>Installation of musl-libc</title>
|
---|
[e666df1] | 30 |
|
---|
[0dad5b9] | 31 | <para os="h">Compile the package:</para>
|
---|
[f23b5ee] | 32 |
|
---|
[75a0379] | 33 | <screen os="i"><userinput>CC=${CLFS_TARGET}-gcc make \
|
---|
| 34 | --enable-debug</userinput></screen>
|
---|
[f23b5ee] | 35 |
|
---|
[0dad5b9] | 36 | <para os="l">Install the package:</para>
|
---|
[a9e389d] | 37 |
|
---|
[0dad5b9] | 38 | <screen os="j"><userinput>make PREFIX=${CLFS} install</userinput></screen>
|
---|
[a9e389d] | 39 |
|
---|
| 40 | </sect2>
|
---|
| 41 |
|
---|
[75a0379] | 42 | <sect2 id="contents-musl-libc" role="content">
|
---|
| 43 | <title>Contents of musl-libc</title>
|
---|
[a9e389d] | 44 |
|
---|
| 45 | <segmentedlist>
|
---|
[b85507d] | 46 | <segtitle>Installed Programs</segtitle>
|
---|
| 47 | <segtitle>Installed Libraries</segtitle>
|
---|
| 48 | <segtitle>Installed Headers</segtitle>
|
---|
[a9e389d] | 49 | <seglistitem>
|
---|
[75a0379] | 50 | <seg>ld-musl-libc.so.0</seg>
|
---|
[b85507d] | 51 | <seg> libc.so.0, libcrypt.so.0, libdl.so.0, libm.so.0, libpthread.so.0,
|
---|
| 52 | librt.so.0</seg>
|
---|
| 53 | <seg>To be written...</seg>
|
---|
[a9e389d] | 54 | </seglistitem>
|
---|
| 55 | </segmentedlist>
|
---|
[b85507d] | 56 |
|
---|
[a9e389d] | 57 | <variablelist>
|
---|
| 58 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 59 | <?dbfo list-presentation="list"?>
|
---|
| 60 | <?dbhtml list-presentation="table"?>
|
---|
| 61 |
|
---|
[75a0379] | 62 | <varlistentry id="ld-musl-libc">
|
---|
| 63 | <term><command>ld-musl-libc</command></term>
|
---|
[a9e389d] | 64 | <listitem>
|
---|
[75a0379] | 65 | <para>The musl-libc dynamic linker / loader</para>
|
---|
| 66 | <indexterm zone="ch-cross-tools-libc ld-musl-libc">
|
---|
| 67 | <primary sortas="b-ld-musl-libc">ld-musl-libc</primary>
|
---|
[b85507d] | 68 | </indexterm>
|
---|
| 69 | </listitem>
|
---|
| 70 | </varlistentry>
|
---|
| 71 |
|
---|
| 72 | <varlistentry id="libc">
|
---|
| 73 | <term><filename class="libraryfile">libc</filename></term>
|
---|
| 74 | <listitem>
|
---|
| 75 | <para>The C library</para>
|
---|
[75a0379] | 76 | <indexterm zone="ch-cross-tools-libc libc">
|
---|
[b85507d] | 77 | <primary sortas="c-libc">libc</primary>
|
---|
| 78 | </indexterm>
|
---|
| 79 | </listitem>
|
---|
| 80 | </varlistentry>
|
---|
| 81 |
|
---|
| 82 | <varlistentry id="libcrypt">
|
---|
| 83 | <term><filename class="libraryfile">libcrypt</filename></term>
|
---|
| 84 | <listitem>
|
---|
| 85 | <para>The cryptographic library</para>
|
---|
[75a0379] | 86 | <indexterm zone="ch-cross-tools-libc libcrypt">
|
---|
[b85507d] | 87 | <primary sortas="c-libcrypt">libcrypt</primary>
|
---|
| 88 | </indexterm>
|
---|
| 89 | </listitem>
|
---|
| 90 | </varlistentry>
|
---|
| 91 |
|
---|
| 92 | <varlistentry id="libdl">
|
---|
| 93 | <term><filename class="libraryfile">libdl</filename></term>
|
---|
| 94 | <listitem>
|
---|
[75a0379] | 95 | <para>The musl-libc dynamic linker / loader library</para>
|
---|
| 96 | <indexterm zone="ch-cross-tools-libc libdl">
|
---|
[b85507d] | 97 | <primary sortas="c-libdl">libdl</primary>
|
---|
[a9e389d] | 98 | </indexterm>
|
---|
| 99 | </listitem>
|
---|
| 100 | </varlistentry>
|
---|
| 101 |
|
---|
[b85507d] | 102 | <varlistentry id="libm">
|
---|
| 103 | <term><filename class="libraryfile">libm</filename></term>
|
---|
| 104 | <listitem>
|
---|
| 105 | <para>The math library</para>
|
---|
[75a0379] | 106 | <indexterm zone="ch-cross-tools-libc libm">
|
---|
[b85507d] | 107 | <primary sortas="c-libm">libm</primary>
|
---|
| 108 | </indexterm>
|
---|
| 109 | </listitem>
|
---|
| 110 | </varlistentry>
|
---|
| 111 |
|
---|
| 112 | <varlistentry id="libpthread">
|
---|
| 113 | <term><filename class="libraryfile">libpthread</filename></term>
|
---|
| 114 | <listitem>
|
---|
| 115 | <para>The POSIX thread library</para>
|
---|
[75a0379] | 116 | <indexterm zone="ch-cross-tools-libc libpthread">
|
---|
[b85507d] | 117 | <primary sortas="c-libpthread">libpthread</primary>
|
---|
| 118 | </indexterm>
|
---|
| 119 | </listitem>
|
---|
| 120 | </varlistentry>
|
---|
| 121 |
|
---|
| 122 | <varlistentry id="librt">
|
---|
| 123 | <term><filename class="libraryfile">librt</filename></term>
|
---|
| 124 | <listitem>
|
---|
| 125 | <para>The clock and timer library</para>
|
---|
[75a0379] | 126 | <indexterm zone="ch-cross-tools-libc librt">
|
---|
[b85507d] | 127 | <primary sortas="c-librt">librt</primary>
|
---|
| 128 | </indexterm>
|
---|
| 129 | </listitem>
|
---|
| 130 | </varlistentry>
|
---|
| 131 |
|
---|
| 132 | </variablelist>
|
---|
[a9e389d] | 133 | </sect2>
|
---|
| 134 | </sect1>
|
---|