source: final-system/multilib/adjusting.xml@ 4981156

Last change on this file since 4981156 was b28b386d, checked in by Chris Staub <chris@…>, 18 years ago

Replaced backticks with $() constructs (fixes ticket #29)

  • Property mode set to 100644
File size: 2.6 KB
RevLine 
[bf8c11f]1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-system-adjusting">
9 <?dbhtml filename="adjusting.html"?>
10
11 <title>Adjusting the Toolchain</title>
12
13 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
[109c00d]14 href="../common/adjusting.xml"
[bf8c11f]15 xpointer="xpointer(//*[@os='a'])"/>
16
[a795beb9]17<screen os="c"><userinput>gcc -dumpspecs | \
18perl -p -e 's@/tools/lib/ld@/lib/ld@g;' \
19 -e 's@/tools/lib64/ld@/lib64/ld@g;' \
20 -e 's@\*startfile_prefix_spec:\n@$_/usr/lib/ @g;' > \
[b28b386d]21 $(dirname $(gcc --print-libgcc-file-name))/specs</userinput></screen>
[bf8c11f]22
23 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
[109c00d]24 href="../common/adjusting.xml"
[bf8c11f]25 xpointer="xpointer(//*[@os='d'])"/>
26
[a795beb9]27 <para os="m1">Note that <filename class="directory">/lib</filename> or
28 <filename class="directory">/lib64</filename> is now the prefix
29 of our dynamic linker.</para>
[bf8c11f]30
31 <caution>
32
33 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
[109c00d]34 href="../common/adjusting.xml"
[bf8c11f]35 xpointer="xpointer(//*[@os='f'])"/>
36
[a795beb9]37 <para os="m2">For 32 bit ABI:</para>
[bf8c11f]38
[a795beb9]39<screen os="m3"><userinput>echo 'main(){}' &gt; dummy.c
40cc ${BUILD32} dummy.c
41readelf -l a.out | grep ': /lib'</userinput></screen>
[bf8c11f]42
43 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
[109c00d]44 href="../common/adjusting.xml"
[bf8c11f]45 xpointer="xpointer(//*[@os='h'])"/>
46
47 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
[109c00d]48 href="../common/adjusting.xml"
[bf8c11f]49 xpointer="xpointer(//*[@os='i'])"/>
50
[a795beb9]51 <para os="m4">For 64 bit ABI:</para>
[bf8c11f]52
[a795beb9]53<screen os="m5"><userinput>echo 'main(){}' &gt; dummy.c
54cc ${BUILD64} dummy.c
55readelf -l a.out | grep ': /lib'</userinput></screen>
[bf8c11f]56
57 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
[109c00d]58 href="../common/adjusting.xml"
[bf8c11f]59 xpointer="xpointer(//*[@os='h'])"/>
60
[109c00d]61 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
62 href="../common/adjusting.xml"
63 xpointer="xpointer(//*[@os='i'])"/>
[bf8c11f]64
[a795beb9]65 <para os="m7">Note that <filename class="directory">/lib</filename> or
66 <filename class="directory">/lib64</filename> is now the prefix
67 of our dynamic linker.</para>
[bf8c11f]68
69 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
[109c00d]70 href="../common/adjusting.xml"
[bf8c11f]71 xpointer="xpointer(//*[@os='k'])"/>
72
73 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
[109c00d]74 href="../common/adjusting.xml"
[bf8c11f]75 xpointer="xpointer(//*[@os='l'])"/>
76
77 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
[109c00d]78 href="../common/adjusting.xml"
[bf8c11f]79 xpointer="xpointer(//*[@os='m'])"/>
80
81 </caution>
82
83</sect1>
Note: See TracBrowser for help on using the repository browser.