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

Last change on this file since 4d9350d 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
Line 
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-cross-tools-libc" role="wrap">
9 <?dbhtml filename="libc.html"?>
10
11 <title>musl-&musl-version;</title>
12
13 <indexterm zone="ch-cross-tools-libc">
14 <primary sortas="a-libc">musl</primary>
15 <secondary>cross tools</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.</para>
25
26 </sect2>
27
28 <sect2 role="installation">
29 <title>Installation of musl</title>
30
31 <para os="h">Configure the package:</para>
32
33<screen os="i"><userinput>CC=${CLFS_TARGET}-gcc ./configure \
34 CROSS_COMPILE=${CLFS_TARGET}- \
35 --prefix=/ \
36 --target=${CLFS_TARGET}</userinput></screen>
37
38 <para os="h">Compile the package:</para>
39
40<screen os="i"><userinput>CC=${CLFS_TARGET}-gcc make</userinput></screen>
41
42 <para os="l">Install the package:</para>
43
44<screen os="j"><userinput>DESTDIR=${CLFS}/cross-tools/${CLFS_TARGET} make install</userinput></screen>
45
46 </sect2>
47
48 <sect2 id="contents-musl" role="content">
49 <title>Contents of musl</title>
50
51 <segmentedlist>
52 <segtitle>Installed Programs</segtitle>
53 <segtitle>Installed Libraries</segtitle>
54 <segtitle>Installed Headers</segtitle>
55 <seglistitem>
56 <seg>ld-musl.so.0</seg>
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>
60 </seglistitem>
61 </segmentedlist>
62
63 <variablelist>
64 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
65 <?dbfo list-presentation="list"?>
66 <?dbhtml list-presentation="table"?>
67
68 <varlistentry id="ld-musl">
69 <term><command>ld-musl</command></term>
70 <listitem>
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>
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>
82 <indexterm zone="ch-cross-tools-libc libc">
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>
92 <indexterm zone="ch-cross-tools-libc libcrypt">
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>
101 <para>The musl dynamic linker / loader library</para>
102 <indexterm zone="ch-cross-tools-libc libdl">
103 <primary sortas="c-libdl">libdl</primary>
104 </indexterm>
105 </listitem>
106 </varlistentry>
107
108 <varlistentry id="libm">
109 <term><filename class="libraryfile">libm</filename></term>
110 <listitem>
111 <para>The math library</para>
112 <indexterm zone="ch-cross-tools-libc libm">
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>
122 <indexterm zone="ch-cross-tools-libc libpthread">
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>
132 <indexterm zone="ch-cross-tools-libc librt">
133 <primary sortas="c-librt">librt</primary>
134 </indexterm>
135 </listitem>
136 </varlistentry>
137
138 </variablelist>
139 </sect2>
140</sect1>
Note: See TracBrowser for help on using the repository browser.