source: chapter08/libtool.xml@ 31a18d02

multilib
Last change on this file since 31a18d02 was 31a18d02, checked in by Thomas Trepl <thomas@…>, 7 months ago

Automatic merge of trunk into multilib

  • Property mode set to 100644
File size: 5.6 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
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 <para>Five tests are known to fail in the LFS build environment due
58 to a circular dependency, but these tests pass if rechecked after
59 automake has been installed. Additionally, with grep-3.8 or newer,
60 two tests will trigger a warning for non-POSIX regular expressions and
61 fail.</para>
62
63 <para>Install the package:</para>
64
65<screen><userinput remap="install">make install</userinput></screen>
66
67 <!-- dev: - -disable-static works but causes additional test failures
68 so we manually remove the static library -->
69
70 <para>Remove a useless static library:</para>
71
72<screen><userinput remap="install">rm -fv /usr/lib/libltdl.a</userinput></screen>
73
74 </sect2>
75
76 <!-- - - - - - - - - - -->
77 <!-- Multilib - 32bit -->
78 <!-- - - - - - - - - - -->
79
80 <sect2 arch="ml_32,ml_all" role="installation">
81 <title>Installation of Libtool - 32bit</title>
82
83 <para>Clean previous build:</para>
84
85<screen><userinput remap="pre">make distclean</userinput></screen>
86
87 <para>Prepare Libtool for compilation:</para>
88
89<screen><userinput remap="configure">CC="gcc -m32" ./configure \
90 --host=i686-pc-linux-gnu \
91 --prefix=/usr \
92 --libdir=/usr/lib32</userinput></screen>
93
94 <para>Compile the package:</para>
95
96<screen><userinput remap="make">make</userinput></screen>
97
98 <para>Install the package:</para>
99
100<screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install
101cp -Rv DESTDIR/usr/lib32/* /usr/lib32
102rm -rf DESTDIR</userinput></screen>
103
104 </sect2><!-- m32 -->
105
106 <!-- - - - - - - - - - -->
107 <!-- Multilib - x32bit -->
108 <!-- - - - - - - - - - -->
109
110 <sect2 arch="ml_x32,ml_all" role="installation">
111 <title>Installation of Libtool - x32bit</title>
112
113 <para>Clean previous build:</para>
114
115<screen><userinput remap="pre">make distclean</userinput></screen>
116
117 <para>Prepare Libtool for compilation:</para>
118
119<screen><userinput remap="configure">CC="gcc -mx32" ./configure \
120 --host=x86_64-pc-linux-gnux32 \
121 --prefix=/usr \
122 --libdir=/usr/libx32</userinput></screen>
123
124 <para>Compile the package:</para>
125
126<screen><userinput remap="make">make</userinput></screen>
127
128 <para>Install the package:</para>
129
130<screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install
131cp -Rv DESTDIR/usr/libx32/* /usr/libx32
132rm -rf DESTDIR</userinput></screen>
133
134 </sect2><!-- mx32 -->
135
136 <sect2 id="contents-libtool" role="content">
137 <title>Contents of Libtool</title>
138
139 <segmentedlist>
140 <segtitle>Installed programs</segtitle>
141 <segtitle>Installed libraries</segtitle>
142 <segtitle>Installed directories</segtitle>
143
144 <seglistitem>
145 <seg>libtool and libtoolize</seg>
146 <seg>libltdl.so</seg>
147 <seg>/usr/include/libltdl and /usr/share/libtool</seg>
148 </seglistitem>
149 </segmentedlist>
150
151 <variablelist>
152 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
153 <?dbfo list-presentation="list"?>
154 <?dbhtml list-presentation="table"?>
155
156 <varlistentry id="libtool">
157 <term><command>libtool</command></term>
158 <listitem>
159 <para>Provides generalized library-building support services</para>
160 <indexterm zone="ch-system-libtool libtool">
161 <primary sortas="b-libtool">libtool</primary>
162 </indexterm>
163 </listitem>
164 </varlistentry>
165
166 <varlistentry id="libtoolize">
167 <term><command>libtoolize</command></term>
168 <listitem>
169 <para>Provides a standard way to add <command>libtool</command>
170 support to a package</para>
171 <indexterm zone="ch-system-libtool libtoolize">
172 <primary sortas="b-libtoolize">libtoolize</primary>
173 </indexterm>
174 </listitem>
175 </varlistentry>
176
177 <varlistentry id="libltdl">
178 <term><filename class="libraryfile">libltdl</filename></term>
179 <listitem>
180 <para>Hides the various difficulties of opening dynamically loaded libraries</para>
181 <indexterm zone="ch-system-libtool libltdl">
182 <primary sortas="c-libltdl">libltdl</primary>
183 </indexterm>
184 </listitem>
185 </varlistentry>
186
187 </variablelist>
188
189 </sect2>
190
191</sect1>
Note: See TracBrowser for help on using the repository browser.