[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 |
|
---|
[466a568] | 31 | <para os="h">Configure the package:</para>
|
---|
[f23b5ee] | 32 |
|
---|
[466a568] | 33 | <screen os="i"><userinput>CC=${CLFS_TARGET}-gcc ./configure \
|
---|
| 34 | --prefix=${CLFS}/cross-tools/${CLFS_TARGET} \
|
---|
| 35 | --target=${CLFS_TARGET} \
|
---|
[75a0379] | 36 | --enable-debug</userinput></screen>
|
---|
[f23b5ee] | 37 |
|
---|
[466a568] | 38 | <para os="h">Compile the package:</para>
|
---|
| 39 |
|
---|
| 40 | <screen os="i"><userinput>CC=${CLFS_TARGET}-gcc make</userinput></screen>
|
---|
| 41 |
|
---|
[0dad5b9] | 42 | <para os="l">Install the package:</para>
|
---|
[a9e389d] | 43 |
|
---|
[466a568] | 44 | <screen os="j"><userinput>make install</userinput></screen>
|
---|
[a9e389d] | 45 |
|
---|
| 46 | </sect2>
|
---|
| 47 |
|
---|
[75a0379] | 48 | <sect2 id="contents-musl-libc" role="content">
|
---|
| 49 | <title>Contents of musl-libc</title>
|
---|
[a9e389d] | 50 |
|
---|
| 51 | <segmentedlist>
|
---|
[b85507d] | 52 | <segtitle>Installed Programs</segtitle>
|
---|
| 53 | <segtitle>Installed Libraries</segtitle>
|
---|
| 54 | <segtitle>Installed Headers</segtitle>
|
---|
[a9e389d] | 55 | <seglistitem>
|
---|
[75a0379] | 56 | <seg>ld-musl-libc.so.0</seg>
|
---|
[b85507d] | 57 | <seg> libc.so.0, libcrypt.so.0, libdl.so.0, libm.so.0, libpthread.so.0,
|
---|
| 58 | librt.so.0</seg>
|
---|
| 59 | <seg>To be written...</seg>
|
---|
[a9e389d] | 60 | </seglistitem>
|
---|
| 61 | </segmentedlist>
|
---|
[b85507d] | 62 |
|
---|
[a9e389d] | 63 | <variablelist>
|
---|
| 64 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 65 | <?dbfo list-presentation="list"?>
|
---|
| 66 | <?dbhtml list-presentation="table"?>
|
---|
| 67 |
|
---|
[75a0379] | 68 | <varlistentry id="ld-musl-libc">
|
---|
| 69 | <term><command>ld-musl-libc</command></term>
|
---|
[a9e389d] | 70 | <listitem>
|
---|
[75a0379] | 71 | <para>The musl-libc dynamic linker / loader</para>
|
---|
| 72 | <indexterm zone="ch-cross-tools-libc ld-musl-libc">
|
---|
| 73 | <primary sortas="b-ld-musl-libc">ld-musl-libc</primary>
|
---|
[b85507d] | 74 | </indexterm>
|
---|
| 75 | </listitem>
|
---|
| 76 | </varlistentry>
|
---|
| 77 |
|
---|
| 78 | <varlistentry id="libc">
|
---|
| 79 | <term><filename class="libraryfile">libc</filename></term>
|
---|
| 80 | <listitem>
|
---|
| 81 | <para>The C library</para>
|
---|
[75a0379] | 82 | <indexterm zone="ch-cross-tools-libc libc">
|
---|
[b85507d] | 83 | <primary sortas="c-libc">libc</primary>
|
---|
| 84 | </indexterm>
|
---|
| 85 | </listitem>
|
---|
| 86 | </varlistentry>
|
---|
| 87 |
|
---|
| 88 | <varlistentry id="libcrypt">
|
---|
| 89 | <term><filename class="libraryfile">libcrypt</filename></term>
|
---|
| 90 | <listitem>
|
---|
| 91 | <para>The cryptographic library</para>
|
---|
[75a0379] | 92 | <indexterm zone="ch-cross-tools-libc libcrypt">
|
---|
[b85507d] | 93 | <primary sortas="c-libcrypt">libcrypt</primary>
|
---|
| 94 | </indexterm>
|
---|
| 95 | </listitem>
|
---|
| 96 | </varlistentry>
|
---|
| 97 |
|
---|
| 98 | <varlistentry id="libdl">
|
---|
| 99 | <term><filename class="libraryfile">libdl</filename></term>
|
---|
| 100 | <listitem>
|
---|
[75a0379] | 101 | <para>The musl-libc dynamic linker / loader library</para>
|
---|
| 102 | <indexterm zone="ch-cross-tools-libc libdl">
|
---|
[b85507d] | 103 | <primary sortas="c-libdl">libdl</primary>
|
---|
[a9e389d] | 104 | </indexterm>
|
---|
| 105 | </listitem>
|
---|
| 106 | </varlistentry>
|
---|
| 107 |
|
---|
[b85507d] | 108 | <varlistentry id="libm">
|
---|
| 109 | <term><filename class="libraryfile">libm</filename></term>
|
---|
| 110 | <listitem>
|
---|
| 111 | <para>The math library</para>
|
---|
[75a0379] | 112 | <indexterm zone="ch-cross-tools-libc libm">
|
---|
[b85507d] | 113 | <primary sortas="c-libm">libm</primary>
|
---|
| 114 | </indexterm>
|
---|
| 115 | </listitem>
|
---|
| 116 | </varlistentry>
|
---|
| 117 |
|
---|
| 118 | <varlistentry id="libpthread">
|
---|
| 119 | <term><filename class="libraryfile">libpthread</filename></term>
|
---|
| 120 | <listitem>
|
---|
| 121 | <para>The POSIX thread library</para>
|
---|
[75a0379] | 122 | <indexterm zone="ch-cross-tools-libc libpthread">
|
---|
[b85507d] | 123 | <primary sortas="c-libpthread">libpthread</primary>
|
---|
| 124 | </indexterm>
|
---|
| 125 | </listitem>
|
---|
| 126 | </varlistentry>
|
---|
| 127 |
|
---|
| 128 | <varlistentry id="librt">
|
---|
| 129 | <term><filename class="libraryfile">librt</filename></term>
|
---|
| 130 | <listitem>
|
---|
| 131 | <para>The clock and timer library</para>
|
---|
[75a0379] | 132 | <indexterm zone="ch-cross-tools-libc librt">
|
---|
[b85507d] | 133 | <primary sortas="c-librt">librt</primary>
|
---|
| 134 | </indexterm>
|
---|
| 135 | </listitem>
|
---|
| 136 | </varlistentry>
|
---|
| 137 |
|
---|
| 138 | </variablelist>
|
---|
[a9e389d] | 139 | </sect2>
|
---|
| 140 | </sect1>
|
---|