source: BOOK/final-system/multilib/libtool.xml@ e59e934

clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since e59e934 was e3196bd, checked in by Joe Ciccone <jciccone@…>, 16 years ago

Remove more tabs and replace with 8 spaces.

  • Property mode set to 100644
File size: 4.2 KB
RevLine 
[3f8be484]1<?xml version="1.0" encoding="ISO-8859-1"?>
[aa18ac0]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[3f8be484]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-system-libtool-32" role="wrap">
9 <?dbhtml filename="libtool.html"?>
10
11 <title>Libtool-&libtool-version; 32 Bit Libraries</title>
12
[d3a0268]13<!-- with the introduction of an LDEMULATION on make check, to fix a test
14 failure which has appeared for unknown reasons, this text is now specific
15 to mips -o32. -->
16
[3f8be484]17 <indexterm zone="ch-system-libtool-32">
18 <primary sortas="a-Libtool">Libtool</primary>
19 <secondary>32 Bit</secondary>
20 </indexterm>
21
[566db8e]22 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
23 href="../common/libtool.xml"
24 xpointer="xpointer(//*[@role='package'])"/>
[3f8be484]25
26 <sect2 role="installation">
27 <title>Installation of Libtool</title>
28
[e793c46]29 <para os="a1">The following <filename>config.cache</filename> entry
30 overrides the default search path, which does not take
[8aa6f1c2]31 multilib into account:</para>
32
33<screen os="a2"><userinput>echo "lt_cv_sys_dlsearch_path='/lib /usr/lib /usr/local/lib /opt/lib'" &gt; config.cache</userinput></screen>
34
[3f8be484]35 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
36 href="../common/libtool.xml"
37 xpointer="xpointer(//*[@os='a'])"/>
38
[8aa6f1c2]39<screen os="b"><userinput>CC="gcc ${BUILD32}" ./configure --prefix=/usr \
40 --cache-file=config.cache</userinput></screen>
[3f8be484]41
42 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
43 href="../common/libtool.xml"
44 xpointer="xpointer(//*[@os='c'])"/>
45
46 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
47 href="../common/libtool.xml"
48 xpointer="xpointer(//*[@os='d'])"/>
49
[d3a0268]50 <para os="e">To test the results, first identify whether you are on a big- or
51 little-endian machine. SGI machines are usually big-endian, Cobalt are
52 usually little-endian. If in doubt you can <command>echo ${MACHTYPE} | grep 'el-'
53 </command>- this will match a little-endian machine.</para>
54
55 <para os="e2">To test on a little-endian machine issue:
56 <userinput>make LDEMULATION=elf32ltsmip check</userinput>.</para>
57
58 <para os="e1">To test on a big-endian machine issue:
59 <userinput>make LDEMULATION=elf32btsmip check</userinput>.</para>
60
61 <variablelist os="c">
62 <title>The meaning of the override on make check:</title>
63
64 <varlistentry>
65 <term><parameter>LDEMULATION=[emulation]</parameter></term>
[e3196bd]66 <!-- <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
67 href="../ppc64/libtool.xml"
68 xpointer="xpointer(//*[@os='c2'])"/> -->
[d3a0268]69 <listitem os="c2">
70 <para>Libtool tends to do the wrong thing when building for multilib,
[e3196bd]71 at least on the non-default size(s) of architecture. The causes of
72 these errors are not well understood and they can appear, or disappear,
73 as a result of apparently innocuous other changes in the build. In
74 this version of the book, one of the tests (pdemo-make) fails to link
75 because it tries to link the 32-bit objects against 64-bit system
76 libraries. This option enables the test to succeed without impacting
77 the other tests (compare the common alternative fixes of
78 <literal>LD="gcc ${BUILD32}"</literal> which causes far fewer tests
79 to be executed, and configuring with
80 <literal>LDFLAGS='-L/lib -L/usr/lib'</literal> which in this case
81 causes other tests to fail.)</para>
[d3a0268]82 </listitem>
83 </varlistentry>
84
85 </variablelist>
[3f8be484]86
87 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
88 href="../common/libtool.xml"
89 xpointer="xpointer(//*[@os='f'])"/>
90
[e0e40d3]91 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
92 href="../common/libtool.xml"
93 xpointer="xpointer(//*[@os='g'])"/>
94
[5e0e6ec]95 <para os="m1">Prepare <filename>libtool</filename> to be wrapped by
96 the multiarch wrapper. Libtool by itself is not multilib aware:</para>
97
98<screen os="m2"><userinput>mv -v /usr/bin/libtool{,-32}</userinput></screen>
99
[3f8be484]100 </sect2>
101
102 <sect2 role="content">
103 <title/>
104
105 <para>Details on this package are located in <xref
106 linkend="contents-libtool" role="."/></para>
107
108 </sect2>
109
110</sect1>
Note: See TracBrowser for help on using the repository browser.