source: clfs-embedded/BOOK/cross-tools/common/libc.xml@ e065f44

Last change on this file since e065f44 was 5a5d7ef, checked in by Andrew Bradford <andrew@…>, 8 years ago

libc: Use CROSS_COMPILE to use cross-binutils

As reported by selk on IRC.

Without setting the CROSS_COMPILE variable, potentially the host's
binutils may be used. Usage of CC is also needed, so is kept.

  • Property mode set to 100644
File size: 4.4 KB
RevLine 
[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 \
[5a5d7ef]34 CROSS_COMPILE=${CLFS_TARGET}- \
[7cc5805]35 --prefix=/ \
[fa71d19]36 --target=${CLFS_TARGET}</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
[7cc5805]44<screen os="j"><userinput>DESTDIR=${CLFS}/cross-tools/${CLFS_TARGET} make install</userinput></screen>
[b608a6d]45
[a9e389d]46 </sect2>
47
[dd423a0]48 <sect2 id="contents-musl" role="content">
49 <title>Contents of musl</title>
[a9e389d]50
51 <segmentedlist>
[b85507d]52 <segtitle>Installed Programs</segtitle>
53 <segtitle>Installed Libraries</segtitle>
54 <segtitle>Installed Headers</segtitle>
[a9e389d]55 <seglistitem>
[dd423a0]56 <seg>ld-musl.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
[dd423a0]68 <varlistentry id="ld-musl">
69 <term><command>ld-musl</command></term>
[a9e389d]70 <listitem>
[dd423a0]71 <para>The musl dynamic linker / loader</para>
72 <indexterm zone="ch-cross-tools-libc ld-musl">
73 <primary sortas="b-ld-musl">ld-musl</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>
[dd423a0]101 <para>The musl dynamic linker / loader library</para>
[75a0379]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>
Note: See TracBrowser for help on using the repository browser.