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