source: clfs-embedded/BOOK/final-system/common/libc.xml

Last change on this file was e3742c1, checked in by Andrew Bradford <andrew@…>, 7 years ago

final-system: libc: Only install the libs into targetfs

By default some tools and headers would be installed using 'make
install' but we don't want any of those, we just need the libs.

  • Property mode set to 100644
File size: 1.6 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-final-system-libc" role="wrap">
9 <?dbhtml filename="libc.html"?>
10
11 <title>musl-&musl-version;</title>
12
13 <indexterm zone="ch-final-system-libc">
14 <primary sortas="a-libc">musl</primary>
15 <secondary>final system</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. We build it again here so that it can be installed
25 into our targetfs sysroot but this time we only build the shared object
26 version.</para>
27
28 </sect2>
29
30 <sect2 role="installation">
31 <title>Installation of musl</title>
32
33 <para os="h">Configure the package:</para>
34
35<screen os="i"><userinput>./configure \
36 CROSS_COMPILE=${CLFS_TARGET}- \
37 --prefix=/ \
38 --disable-static \
39 --target=${CLFS_TARGET}</userinput></screen>
40
41 <para os="h">Compile the package:</para>
42
43<screen os="i"><userinput>make</userinput></screen>
44
45 <para os="l">Install just the shared library:</para>
46
47<screen os="j"><userinput>DESTDIR=${CLFS}/targetfs make install-libs</userinput></screen>
48
49 </sect2>
50
51 <sect2 role="content">
52 <title/>
53
54 <para>Details on this package are located in
55 <xref linkend="contents-musl" role="."/></para>
56
57 </sect2>
58
59</sect1>
Note: See TracBrowser for help on using the repository browser.