source: clfs-embedded/BOOK/final-system/common/libgcc.xml@ adfc846

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

final-system: Add libgcc.so copying to targetfs

Since we're compiling applications to use shared libs, we need to
provide a copy of libgcc in the targetfs.

  • Property mode set to 100644
File size: 1.3 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-libgcc" role="wrap">
9 <?dbhtml filename="libgcc.html"?>
10
11 <title>libgcc-&gcc-version;</title>
12
13 <indexterm zone="ch-final-system-libgcc">
14 <primary sortas="a-libgcc">libgcc</primary>
15 <secondary>final system</secondary>
16 </indexterm>
17
18 <sect2 role="package">
19 <title/>
20
21 <para>When compiling dynamically linked software using GCC, GCC requires
22 that libgcc be able to be loaded during runtime when executing the
23 software. Hence, we must be sure to provide the final system with a copy
24 of the libgcc we previously built for our cross tools.</para>
25
26 </sect2>
27
28 <sect2 role="installation">
29 <title>Installation of libgcc</title>
30
31 <para os="a">Install the package:</para>
32
33 <screen os="b"><userinput>cp -v ${CLFS}/cross-tools/${CLFS_TARGET}/lib/libgcc_s.so.1 ${CLFS}/targetfs/lib/</userinput></screen>
34
35 <para os="c">Strip libgcc to make it smaller:</para>
36
37 <screen os="d"><userinput>${CLFS_TARGET}-strip ${CLFS}/targetfs/lib/libgcc_s.so.1</userinput></screen>
38
39 </sect2>
40
41</sect1>
Note: See TracBrowser for help on using the repository browser.