source: chapter08/libtool.xml@ a2434bd4

multilib
Last change on this file since a2434bd4 was f8c7e95, checked in by Thomas Trepl <thomas@…>, 17 months ago

Automatic merge of trunk into multilib

  • Property mode set to 100644
File size: 5.9 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-system-libtool" role="wrap">
9 <?dbhtml filename="libtool.html"?>
10
11 <sect1info condition="script">
12 <productname>libtool</productname>
13 <productnumber>&libtool-version;</productnumber>
14 <address>&libtool-url;</address>
15 </sect1info>
16
17 <title>Libtool-&libtool-version;</title>
18
19 <indexterm zone="ch-system-libtool">
20 <primary sortas="a-Libtool">Libtool</primary>
21 </indexterm>
22
23 <sect2 role="package">
24 <title/>
25
26 <para>The Libtool package contains the GNU generic library support script.
27 It makes the use of shared libraries simpler with a consistent, portable
28 interface.</para>
29
30 <segmentedlist>
31 <segtitle>&buildtime;</segtitle>
32 <segtitle>&diskspace;</segtitle>
33
34 <seglistitem>
35 <seg>&libtool-fin-sbu;</seg>
36 <seg>&libtool-fin-du;</seg>
37 </seglistitem>
38 </segmentedlist>
39
40 </sect2>
41
42 <sect2 role="installation">
43 <title>Installation of Libtool</title>
44
45 <para>Prepare Libtool for compilation:</para>
46
47<screen><userinput remap="configure">./configure --prefix=/usr</userinput></screen>
48
49 <para>Compile the package:</para>
50
51<screen><userinput remap="make">make</userinput></screen>
52
53<para>To test the results<!--(about 11.0 SBU)-->, issue:</para>
54
55<screen><userinput remap="test">make -k check</userinput></screen>
56
57 <note><para>The test time for Libtool can be reduced significantly on a
58 system with multiple cores. To do this, append
59 <command>TESTSUITEFLAGS=-j&lt;N&gt;</command> to the line above. For
60 instance, using -j4 can reduce the test time by over 60
61 percent.</para></note>
62
63 <para>Five tests are known to fail in the LFS build environment due
64 to a circular dependency, but these tests pass if rechecked after
65 automake has been installed. Additionally, with grep-3.8, two tests will
66 trigger a warning for non-POSIX regular expressions and fail.</para>
67
68 <para>Install the package:</para>
69
70<screen><userinput remap="install">make install</userinput></screen>
71
72 <!-- dev: - -disable-static works but causes additional test failures
73 so we manually remove the static library -->
74
75 <para>Remove a useless static library:</para>
76
77<screen><userinput remap="install">rm -fv /usr/lib/libltdl.a</userinput></screen>
78
79 </sect2>
80
81 <!-- - - - - - - - - - -->
82 <!-- Multilib - 32bit -->
83 <!-- - - - - - - - - - -->
84
85 <sect2 arch="ml_32,ml_all" role="installation">
86 <title>Installation of Libtool - 32bit</title>
87
88 <para>Clean previous build:</para>
89
90<screen><userinput remap="pre">make distclean</userinput></screen>
91
92 <para>Prepare Libtool for compilation:</para>
93
94<screen><userinput remap="configure">CC="gcc -m32" ./configure \
95 --host=i686-pc-linux-gnu \
96 --prefix=/usr \
97 --libdir=/usr/lib32</userinput></screen>
98
99 <para>Compile the package:</para>
100
101<screen><userinput remap="make">make</userinput></screen>
102
103 <para>Install the package:</para>
104
105<screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install
106cp -Rv DESTDIR/usr/lib32/* /usr/lib32
107rm -rf DESTDIR</userinput></screen>
108
109 </sect2><!-- m32 -->
110
111 <!-- - - - - - - - - - -->
112 <!-- Multilib - x32bit -->
113 <!-- - - - - - - - - - -->
114
115 <sect2 arch="ml_x32,ml_all" role="installation">
116 <title>Installation of Libtool - x32bit</title>
117
118 <para>Clean previous build:</para>
119
120<screen><userinput remap="pre">make distclean</userinput></screen>
121
122 <para>Prepare Libtool for compilation:</para>
123
124<screen><userinput remap="configure">CC="gcc -mx32" ./configure \
125 --host=x86_64-pc-linux-gnux32 \
126 --prefix=/usr \
127 --libdir=/usr/libx32</userinput></screen>
128
129 <para>Compile the package:</para>
130
131<screen><userinput remap="make">make</userinput></screen>
132
133 <para>Install the package:</para>
134
135<screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install
136cp -Rv DESTDIR/usr/libx32/* /usr/libx32
137rm -rf DESTDIR</userinput></screen>
138
139 </sect2><!-- mx32 -->
140
141 <sect2 id="contents-libtool" role="content">
142 <title>Contents of Libtool</title>
143
144 <segmentedlist>
145 <segtitle>Installed programs</segtitle>
146 <segtitle>Installed libraries</segtitle>
147 <segtitle>Installed directories</segtitle>
148
149 <seglistitem>
150 <seg>libtool and libtoolize</seg>
151 <seg>libltdl.so</seg>
152 <seg>/usr/include/libltdl and /usr/share/libtool</seg>
153 </seglistitem>
154 </segmentedlist>
155
156 <variablelist>
157 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
158 <?dbfo list-presentation="list"?>
159 <?dbhtml list-presentation="table"?>
160
161 <varlistentry id="libtool">
162 <term><command>libtool</command></term>
163 <listitem>
164 <para>Provides generalized library-building support services</para>
165 <indexterm zone="ch-system-libtool libtool">
166 <primary sortas="b-libtool">libtool</primary>
167 </indexterm>
168 </listitem>
169 </varlistentry>
170
171 <varlistentry id="libtoolize">
172 <term><command>libtoolize</command></term>
173 <listitem>
174 <para>Provides a standard way to add <command>libtool</command>
175 support to a package</para>
176 <indexterm zone="ch-system-libtool libtoolize">
177 <primary sortas="b-libtoolize">libtoolize</primary>
178 </indexterm>
179 </listitem>
180 </varlistentry>
181
182 <varlistentry id="libltdl">
183 <term><filename class="libraryfile">libltdl</filename></term>
184 <listitem>
185 <para>Hides the various difficulties of opening dynamically loaded libraries</para>
186 <indexterm zone="ch-system-libtool libltdl">
187 <primary sortas="c-libltdl">libltdl</primary>
188 </indexterm>
189 </listitem>
190 </varlistentry>
191
192 </variablelist>
193
194 </sect2>
195
196</sect1>
Note: See TracBrowser for help on using the repository browser.