Changeset 75a0379 in clfs-embedded for BOOK/cross-tools/common
- Timestamp:
- Oct 15, 2013, 1:00:05 PM (11 years ago)
- Branches:
- master
- Children:
- c01e552
- Parents:
- d6d3617
- git-author:
- Andrew Bradford <andrew@…> (10/14/13 13:21:45)
- git-committer:
- Andrew Bradford <andrew@…> (10/15/13 13:00:05)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
BOOK/cross-tools/common/libc.xml
rd6d3617 r75a0379 6 6 ]> 7 7 8 <!-- Common uClibc --> 8 <sect1 id="ch-cross-tools-libc" role="wrap"> 9 <?dbhtml filename="libc.html"?> 9 10 10 <sect1 id="ch-cross-tools-uclibc" role="wrap"> 11 <?dbhtml filename="uclibc.html"?> 11 <title>musl-libc-&musl-libc-version;</title> 12 12 13 <title>uClibc-&uclibc-version;</title> 14 15 <indexterm zone="ch-cross-tools-uclibc"> 16 <primary sortas="a-uClibc">uClibc</primary> 13 <indexterm zone="ch-cross-tools-libc"> 14 <primary sortas="a-libc">musl-libc</primary> 17 15 <secondary>cross tools</secondary> 18 16 </indexterm> … … 21 19 <title/> 22 20 23 <para>The uClibc package contains the main C library. This library provides21 <para>The musl-libc package contains the main C library. This library provides 24 22 the basic routines for allocating memory, searching directories, opening and 25 23 closing files, reading and writing files, string handling, pattern matching, … … 29 27 30 28 <sect2 role="installation"> 31 <title>Installation of uClibc</title> 32 33 <note os="a"> 34 <para>Below we are just telling uClibc to use its default configuration. 35 For those who are more adventurous, you can use make menuconfig and 36 do a more custom build for your uClibc installation.</para> 37 </note> 38 39 <para os="b">The following patch contains the default configurations for 40 the architectures covered in this book:</para> 41 42 <screen os="c"><userinput>patch -Np1 -i ../&uclibc-configs-patch;</userinput></screen> 43 44 <para os="d">Now we will copy the configuration file best matching this 45 build and use that as the base:</para> 46 47 <screen os="e"><userinput>cp -v clfs/config.${CLFS_ARCH}.${CLFS_ENDIAN} .config</userinput></screen> 48 49 <para os="f">The config is a basic working system, but there are some 50 options that are architecture specifc that need to be set. The following 51 command will only bring up items that need a value that we did not 52 specify in our generic config file patch:</para> 53 54 <screen os="g"><userinput>make oldconfig</userinput></screen> 29 <title>Installation of musl-libc</title> 55 30 56 31 <para os="h">Compile the package:</para> 57 32 58 <screen os="i"><userinput>make</userinput></screen> 33 <screen os="i"><userinput>CC=${CLFS_TARGET}-gcc make \ 34 --enable-debug</userinput></screen> 59 35 60 36 <para os="l">Install the package:</para> … … 64 40 </sect2> 65 41 66 <sect2 id="contents- uclibc" role="content">67 <title>Contents of uClibc</title>42 <sect2 id="contents-musl-libc" role="content"> 43 <title>Contents of musl-libc</title> 68 44 69 45 <segmentedlist> … … 72 48 <segtitle>Installed Headers</segtitle> 73 49 <seglistitem> 74 <seg>ld- uClibc.so.0</seg>50 <seg>ld-musl-libc.so.0</seg> 75 51 <seg> libc.so.0, libcrypt.so.0, libdl.so.0, libm.so.0, libpthread.so.0, 76 52 librt.so.0</seg> … … 84 60 <?dbhtml list-presentation="table"?> 85 61 86 <varlistentry id="ld- uClibc">87 <term><command>ld- uClibc</command></term>62 <varlistentry id="ld-musl-libc"> 63 <term><command>ld-musl-libc</command></term> 88 64 <listitem> 89 <para>The uClibc dynamic linker / loader</para>90 <indexterm zone="ch-cross-tools- uclibc ld-uClibc">91 <primary sortas="b-ld- uClibc">ld-uClibc</primary>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> 92 68 </indexterm> 93 69 </listitem> … … 98 74 <listitem> 99 75 <para>The C library</para> 100 <indexterm zone="ch-cross-tools- uclibc libc">76 <indexterm zone="ch-cross-tools-libc libc"> 101 77 <primary sortas="c-libc">libc</primary> 102 78 </indexterm> … … 108 84 <listitem> 109 85 <para>The cryptographic library</para> 110 <indexterm zone="ch-cross-tools- uclibc libcrypt">86 <indexterm zone="ch-cross-tools-libc libcrypt"> 111 87 <primary sortas="c-libcrypt">libcrypt</primary> 112 88 </indexterm> … … 117 93 <term><filename class="libraryfile">libdl</filename></term> 118 94 <listitem> 119 <para>The uClibc dynamic linker / loader library</para>120 <indexterm zone="ch-cross-tools- uclibc libdl">95 <para>The musl-libc dynamic linker / loader library</para> 96 <indexterm zone="ch-cross-tools-libc libdl"> 121 97 <primary sortas="c-libdl">libdl</primary> 122 98 </indexterm> … … 128 104 <listitem> 129 105 <para>The math library</para> 130 <indexterm zone="ch-cross-tools- uclibc libm">106 <indexterm zone="ch-cross-tools-libc libm"> 131 107 <primary sortas="c-libm">libm</primary> 132 108 </indexterm> … … 138 114 <listitem> 139 115 <para>The POSIX thread library</para> 140 <indexterm zone="ch-cross-tools- uclibc libpthread">116 <indexterm zone="ch-cross-tools-libc libpthread"> 141 117 <primary sortas="c-libpthread">libpthread</primary> 142 118 </indexterm> … … 148 124 <listitem> 149 125 <para>The clock and timer library</para> 150 <indexterm zone="ch-cross-tools- uclibc librt">126 <indexterm zone="ch-cross-tools-libc librt"> 151 127 <primary sortas="c-librt">librt</primary> 152 128 </indexterm>
Note:
See TracChangeset
for help on using the changeset viewer.